Commit 14f817d7 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

queue: Properly unlock the sinkpad streaming thread when deactivating the pad
parent 52f23455
......@@ -1413,6 +1413,11 @@ gst_queue_sink_activate_mode (GstPad * pad, GstObject * parent, GstPadMode mode,
/* step 1, unblock chain function */
queue->srcresult = GST_FLOW_FLUSHING;
/* the item del signal will unblock */
g_cond_signal (&queue->item_del);
/* unblock query handler */
queue->last_query = FALSE;
g_cond_signal (&queue->query_handled);
/* step 2, wait until streaming thread stopped and flush queue */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment