After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344101 - SunAudio mixer fixes
SunAudio mixer fixes
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other opensolaris
: Normal normal
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-07 03:08 UTC by Brian Cameron
Modified: 2006-06-09 17:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
patch to fix SunAudio mixer element (4.46 KB, patch)
2006-06-07 03:09 UTC, Brian Cameron
rejected Details | Review
updated patch (6.20 KB, patch)
2006-06-08 21:47 UTC, Brian Cameron
committed Details | Review

Description Brian Cameron 2006-06-07 03:08:36 UTC
Attached find a patch that fixes a number of bugs with the SunAudio mixer plugin:

1. The gst_sunaudiomixer_ctrl_build_list kept appending the same 3 tracks onto 
   the tracklist causing gnome-volume-control's preferences dialog to be messed
   up and would core dump if you checked/unchecked any item.

2. We weren't previously setting the MUTE flag properly.  Fixing this makes 
   gnome-volume-control work better.

3. Now we properly define the input track to be GST_MIXER_TRACK_INPUT and
   the monitor to be GST_MIXER_TRACK_OUTPUT, so that makes gnome-volume-control
   look better.

Also some minor cleanup in gstsunaudiosink.c.
Comment 1 Brian Cameron 2006-06-07 03:09:10 UTC
Created attachment 66866 [details] [review]
patch to fix SunAudio mixer element
Comment 2 Brian Cameron 2006-06-08 21:47:04 UTC
Created attachment 67003 [details] [review]
updated patch


The last patch was missing some code to prevent the preferences core dumping problem.  Please update with this patch instead.
Comment 3 Wim Taymans 2006-06-09 17:30:17 UTC
        Patch by: Brian Cameron <brian dot cameron at sun dot com>

        * sys/sunaudio/gstsunaudiomixerctrl.c:
        (gst_sunaudiomixer_ctrl_open), (gst_sunaudiomixer_ctrl_build_list),
        (gst_sunaudiomixer_ctrl_new), (gst_sunaudiomixer_ctrl_set_volume),
        (gst_sunaudiomixer_ctrl_set_mute):
        * sys/sunaudio/gstsunaudiosink.c: (gst_sunaudiosink_class_init),
        (gst_sunaudiosink_init), (gst_sunaudiosink_prepare),
        (gst_sunaudiosink_write):
        Attached find a patch that fixes a number of bugs with the SunAudio mixer
        plugin and fixes #344101:
        1. The gst_sunaudiomixer_ctrl_build_list kept appending the same 3 tracks onto
           the tracklist causing gnome-volume-control's preferences dialog to be messed
           up and would core dump if you checked/unchecked any item.
        2. We weren't previously setting the MUTE flag properly.  Fixing this makes
           gnome-volume-control work better.
        3. Now we properly define the input track to be GST_MIXER_TRACK_INPUT and
           the monitor to be GST_MIXER_TRACK_OUTPUT, so that makes gnome-volume-control
           look better.
        Also some minor cleanup in gstsunaudiosink.c.