X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=subprojects%2Fgstreamer%2Fplugins%2Felements%2Fgstmultiqueue.c;h=ad172199ddeffbfbe311c0000f335af2caf54ae1;hb=3ad31752d24215f6df8f01b541774a57ad057366;hp=f40200b2b4acbdcc714544876e80ab2a9c07d01f;hpb=9e1891f9e38dca9f232fa364e7ac396d7f0b07e5;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c index f40200b..ad17219 100644 --- a/subprojects/gstreamer/plugins/elements/gstmultiqueue.c +++ b/subprojects/gstreamer/plugins/elements/gstmultiqueue.c @@ -2167,7 +2167,7 @@ gst_multi_queue_loop (GstPad * pad) guint32 newid; GstFlowReturn result; GstClockTimeDiff next_time; - gboolean is_buffer; + gboolean is_buffer, is_query; gboolean do_update_buffering = FALSE; gboolean dropping = FALSE; GstPad *srcpad = NULL; @@ -2193,6 +2193,8 @@ next: item = (GstMultiQueueItem *) sitem; newid = item->posid; + is_query = item->is_query; + /* steal the object and destroy the item */ object = gst_multi_queue_item_steal_object (item); gst_multi_queue_item_destroy (item); @@ -2438,7 +2440,7 @@ done: out_flushing: { - if (object && !GST_IS_QUERY (object)) + if (object && !is_query) gst_mini_object_unref (object); GST_MULTI_QUEUE_MUTEX_LOCK (mq);