From a90ce304c823ac47f8a31b33a61db826c548d217 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 2 Dec 2013 22:22:36 -0500 Subject: [PATCH] multiqueue: Wake up on reconfigure event After patch bda406c4, the state of the singlequeue was set to OK, but nothing would then wake up the thread, as the other wakeup functions only look at singlequeues that are marked as having received as not-linked. https://bugzilla.gnome.org/show_bug.cgi?id=708200 --- plugins/elements/gstmultiqueue.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 8a7a45e..6bd1239 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1731,8 +1731,10 @@ gst_multi_queue_src_event (GstPad * pad, GstObject * parent, GstEvent * event) switch (GST_EVENT_TYPE (event)) { case GST_EVENT_RECONFIGURE: GST_MULTI_QUEUE_MUTEX_LOCK (mq); - if (sq->srcresult == GST_FLOW_NOT_LINKED) + if (sq->srcresult == GST_FLOW_NOT_LINKED) { sq->srcresult = GST_FLOW_OK; + g_cond_signal (&sq->turn); + } GST_MULTI_QUEUE_MUTEX_UNLOCK (mq); ret = gst_pad_push_event (sq->sinkpad, event); -- 2.7.4