[gstreamer-bugs] [Bug 616396] New: [playbin2] might fail a duration query immediately following PAUSED state
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Wed Apr 21 05:55:13 PDT 2010
https://bugzilla.gnome.org/show_bug.cgi?id=616396
GStreamer | gst-plugins-base | git
Summary: [playbin2] might fail a duration query immediately
following PAUSED state
Classification: Desktop
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
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)
View: https://bugzilla.gnome.org/attachment.cgi?id=159252
Review: https://bugzilla.gnome.org/review?bug=616396&attachment=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
earlier).
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
mailing list