[gstreamer-bugs] [Bug 616396] New: [playbin2] might fail a duration query immediately following PAUSED state
bugzilla at gnome.org
Wed Apr 21 05:55:13 PDT 2010
GStreamer | gst-plugins-base | git
Summary: [playbin2] might fail a duration query immediately
following PAUSED state
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: mnauw at users.sourceforge.net
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Created an attachment (id=159252)
Only return cached duration during group switch if there is a cached one.
playbin2 special cases duration query and provides cached duration if there is
a stream-changed message still pending (which should be posted by downstream
sinks when they receive the message event that has been sent downstream
Consider a mainloop receiving a state change to PAUSED and then issuing a
duration query. Then there is a race between this mainloop and the
rendering/posting of the stream-changed message. If the former is "faster",
then playbin2 will look for a cached duration response (which can not be
present yet as all is still starting up).
Possible patch attached (though something more nifty might be possible ...)
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