From 97a6bb377bdfbed7e878d320f6b5cdfeb1a23caf Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 23 Sep 2014 14:31:29 +0200 Subject: [PATCH] queue: Do not forget to release the QUEUE_LOCK in the out_flow_error path Avoiding deadlocks! --- plugins/elements/gstqueue.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c index d7d96858f3..b2151bef90 100644 --- a/plugins/elements/gstqueue.c +++ b/plugins/elements/gstqueue.c @@ -837,6 +837,8 @@ gst_queue_handle_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) (_("Internal data flow error.")), ("streaming task paused, reason %s (%d)", gst_flow_get_name (queue->srcresult), queue->srcresult)); + } else { + GST_QUEUE_MUTEX_UNLOCK (queue); } goto out_flow_error; } -- 2.34.1