From b6470a7b3f26c203112db57b58afe8533b877963 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 10 Mar 2014 09:48:58 -0300 Subject: [PATCH] multiqueue: do not reset last push result when pushing events Use the last result as a default when pushing a item from a single queue, otherwise the status gets reset to _OK when pushing events. This causes problems when mistakenly activating a not-linked stream that is being ignored upstream as it is not being used (adaptive scenarios), it will make the multiqueue post a buffering message on a pad that won't receive buffers https://bugzilla.gnome.org/show_bug.cgi?id=725917 --- plugins/elements/gstmultiqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index df3b6fe..981632c 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1067,7 +1067,7 @@ static GstFlowReturn gst_single_queue_push_one (GstMultiQueue * mq, GstSingleQueue * sq, GstMiniObject * object) { - GstFlowReturn result = GST_FLOW_OK; + GstFlowReturn result = sq->srcresult; if (GST_IS_BUFFER (object)) { GstBuffer *buffer; -- 2.7.4