mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
decodebin: Don't call autoplug-query on shutdown
And remove leftover debug code
This commit is contained in:
parent
e482b5b8e6
commit
14192c031a
1 changed files with 2 additions and 6 deletions
|
@ -4251,14 +4251,10 @@ gst_decode_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
gboolean ret = FALSE;
|
||||
|
||||
CHAIN_MUTEX_LOCK (dpad->chain);
|
||||
if (!dpad->exposed && !dpad->chain->deadend && dpad->chain->elements) {
|
||||
if (!dpad->exposed && !dpad->dbin->shutdown && !dpad->chain->deadend
|
||||
&& dpad->chain->elements) {
|
||||
GstDecodeElement *delem = dpad->chain->elements->data;
|
||||
|
||||
if (GST_QUERY_TYPE (query) == GST_QUERY_ALLOCATION) {
|
||||
g_print ("huh\n");
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
ret = FALSE;
|
||||
GST_DEBUG_OBJECT (dpad->dbin,
|
||||
"calling autoplug-query for %s (element %s): %" GST_PTR_FORMAT,
|
||||
|
|
Loading…
Reference in a new issue