[Bug 680917] Inconsistent notify::volume emitting between Linux & Mac OS X

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Dec 25 10:13:07 PST 2012


https://bugzilla.gnome.org/show_bug.cgi?id=680917
  GStreamer | don't know | 0.10.36

--- Comment #5 from Timo Dörr <timo+gnome at latecrew.de> 2012-12-25 18:13:00 UTC ---
It is not important that is only fires once , but is it important that it *at
least* fires once on all platforms (but it doesn't on mac os x) or does not
fire at all (upon pipeline setup) on all platforms.

If the backend playbin sets the volume (maybe from a hardware mixer, or
operating system volume level) on setup, notify::volume is the best way to i.e.
adjust any application GUI volume control slider to that level. Maybe there are
other ways, like to wait until the pipeline is setup up, poll for the volume
and then refresh the GUI, but most likely the GUI-volume adjusting code has to
be triggered by notify::volume callback anyways. 

I think more people will have the idea of putting that code into a
notify::volume callback, and when they find that it works on linux they will
move on, assume they did use the API correctly. The hours of debugging comes
later, when they (or someone else) try to port it to another platform and
wonder why it is not working. That is at least what happened to me when porting
Banshee over to OS X.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list