[gstreamer-bugs] [Bug 485753] New: Decodebin2 deadlocks when nulling pipeline during typefind
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Oct 11 07:54:38 PDT 2007
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=485753
GStreamer | gst-plugins-base | Ver: HEAD CVS
Summary: Decodebin2 deadlocks when nulling pipeline during
typefind
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: ext-tommi.myohanen at nokia.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Steps to reproduce the problem:
1. Set playbin with some uri to PLAYING
2. when typefind element is performing typefind, set playbin to NULL
This is what I think happens next:
* Decodebin2 takes its state_lock and starts setting its children from PAUSED
to READY
* Typefind element won't switch to READY until it finishes its typefinding and
has emitted have_type signal
* type_found callback in decodebin2 tries to take state_lock too and pipeline
deadlocks.
I can reproduce the problem with attached test player:
$ GST_DEBUG=GST_STATES:5,typefind:5,decodebin2:5 ./dbin2-deadlock
http://replaygain.hydrogenaudio.org/ref_pink.wav 2> gst.log
Starting pipeline
Got state-changed message from play
Got clock-provide message from play
Got state-changed message from test
Got state-changed message from async-fakesink
Got state-changed message from typefind
typefind changed state to 2
Got state-changed message from decodebin20
Got state-changed message from typefind
typefind changed state to 3
Got state-changed message from source
Got state-changed message from source
Got buffer 1 with size 1171
Got buffer 2 with size 1448
Nulling pipeline
One way to fix this would be to connect/disconnect type_found callback in
READY_TO_PAUSED/PAUSED_TO_READY state changes in decodebin2.
--
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=485753.
More information about the Gstreamer-bugs
mailing list