[gstreamer-bugs] [Bug 589075] New: Changing playbin2 volume doesn't work after sream restarted.

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Jul 19 18:44:22 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=589075

  GStreamer | gst-plugins-base | Ver: 0.10.23
           Summary: Changing playbin2 volume doesn't work after sream
                    restarted.
           Product: GStreamer
           Version: 0.10.23
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: thepizzaking at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


I recently switched my python program to playbin2.
When I play an initial stream on playbin2 the volume seems to work fine, but
when I set the state to gst.STATE_READY and then back to gst.STATE_PLAYING,
attempting to change the volume doesn't have any effect on the output anymore.

While debugging I noticed that reading the volume level from playbin2 still
gives the expected volume level even though the actual output level is
unchanged.
I've also tested with alsa and pulseaudio audio sinks with the same result.

I ran a test in the python console to make sure this wasn't just my bad
programming skills:


Python 2.6.2 (r262:71600, Jul 13 2009, 02:03:19) 
[GCC 4.4.0 20090630 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gst
>>> playbin = gst.element_factory_make('playbin2')
>>> playbin.set_property('uri', $URI)
>>> playbin.set_state(gst.STATE_PLAYING)
<enum GST_STATE_CHANGE_ASYNC of type GstStateChangeReturn>
>>> playbin.set_property('volume',1)
>>> playbin.set_property('volume',.5)
>>> playbin.set_property('volume',.2)
>>> # These volume changes work as expected.
>>> playbin.set_state(gst.STATE_READY)
<enum GST_STATE_CHANGE_SUCCESS of type GstStateChangeReturn>
>>> playbin.set_state(gst.STATE_PLAYING)
<enum GST_STATE_CHANGE_ASYNC of type GstStateChangeReturn>
>>> playbin.set_property('volume',1)
>>> playbin.set_property('volume',.2)
>>> # These volume changes have no effect.
>>> playbin.set_state(gst.STATE_READY)


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=589075.




More information about the Gstreamer-bugs mailing list