decodebin: Don't call autoplug-query on shutdown

And remove leftover debug code
This commit is contained in:
Sebastian Dröge 2013-05-28 13:32:23 +02:00
parent e482b5b8e6
commit 14192c031a

View file

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