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 302798 - [playbin] add mute property
[playbin] add mute property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 0.10.20
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-03 07:04 UTC by Amaury Jacquot
Modified: 2008-05-06 12:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Amaury Jacquot 2005-05-03 07:04:16 UTC
the volume element features a mute property that should be reflected by the
playbin element (as is the volume property)
Comment 1 Ronald Bultje 2005-05-03 08:15:18 UTC
What's wrong with volume=0?

The reason that soundcards have a mute property is because there may be multiple
mixers, and you want them to remember the volume from before it was muted. For
applications such as Totem, it is application-specific and thus a knowledgeable
application could use volume=0 for mute.
Comment 2 Amaury Jacquot 2005-05-03 08:42:09 UTC
This forces the application to cache the value of the volume, and restore it
when removing the mute, which makes the application more complicated, and
violates the encapsulation principles of object programming. 
Comment 3 Ronald Bultje 2005-05-03 09:12:23 UTC
Your slider is not the same widget as the mute button. It caches the value for
you already.
Comment 4 Amaury Jacquot 2005-05-03 09:22:13 UTC
heh, sound-server doesn't have sliders...
Comment 5 Ronald Bultje 2005-05-03 09:24:11 UTC
then cache it in your sound-server, ok? :).
Comment 6 Amaury Jacquot 2005-05-03 09:29:29 UTC
then what's the point of the volume plugin having a mute property ?
Comment 7 Ronald Bultje 2005-05-03 09:54:15 UTC
I don't know.

Look, my issue with this is that we're currently proxying all sort of properties
in playbin by adding it to playbin; that sucks. I'd rather use something like
gstpropertyproxy for that, or something else.
Comment 8 Amaury Jacquot 2005-05-03 10:02:26 UTC
the better idea may be to have the "volume" property return a pointer to the
volume plugin itself, then the app does whatever it wants with the plugin...
if I understand correctly, the volume plugin never gets destroyed, so the app
could cache it
Comment 9 Ronald Bultje 2005-05-03 10:08:39 UTC
No, I'd rather use the property proxy interface Stefan did for this.
Comment 10 Sebastian Dröge (slomo) 2008-05-06 12:47:48 UTC
This is fixed for playbin with the current-audio property (set it to -1 to mute) and for playbin2 with a mute property.