[gstreamer-bugs] [Bug 614288] New: Setting playbin volume has no effect the second time around

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Mar 29 13:03:18 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=614288
  GStreamer | gst-plugins-base | 0.10.28

           Summary: Setting playbin volume has no effect the second time
                    around
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.28
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: thomasgr33n at googlemail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


If the playbin is used to play many media files then the volume can only be
adjusted when the first file is playing, for any subsequent files (that use the
same playbin) it has no effect.

Here is a quick example in python, replace references to '/home/tom/test.oga'
with a media file on your system.


#!/usr/bin/python
import pygtk, gtk, gobject
import pygst, gst

def change_uri():
    print "attempting to play again, but louder"
    pipeline.set_state(gst.STATE_NULL)
    pipeline.set_property("uri", "file:///home/tom/test.oga")
    pipeline.set_state(gst.STATE_PLAYING)
    pipeline.set_property("volume", 1.0)

pipeline = gst.parse_launch('playbin uri=file:///home/tom/test.oga')

pipeline.set_state(gst.STATE_PLAYING)
pipeline.set_property("volume", 0.1)

gobject.timeout_add(6000, change_uri)
gtk.main()


It should playback at a low volume (10%) and after 6 seconds the callback
restarts playback and increases the volume (100%), but instead playback
restarts with the lower volume. It is interesting to note that playbin2 works
fine in the same example!

I hope someone else can reproduce this problem, as far as I can tell I have all
the latest core/plugin releases installed.

-- 
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