mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
queue2: Properly unlock the sinkpad streaming thread when deactivating the pad
https://bugzilla.gnome.org/show_bug.cgi?id=706360
This commit is contained in:
parent
b40599f6db
commit
52f2345516
1 changed files with 4 additions and 0 deletions
|
@ -3078,6 +3078,10 @@ gst_queue2_sink_activate_mode (GstPad * pad, GstObject * parent,
|
|||
GST_DEBUG_OBJECT (queue, "deactivating push mode");
|
||||
queue->srcresult = GST_FLOW_FLUSHING;
|
||||
queue->sinkresult = GST_FLOW_FLUSHING;
|
||||
GST_QUEUE2_SIGNAL_DEL (queue);
|
||||
/* Unblock query handler */
|
||||
queue->last_query = FALSE;
|
||||
g_cond_signal (&queue->query_handled);
|
||||
GST_QUEUE2_MUTEX_UNLOCK (queue);
|
||||
|
||||
/* wait until it is unblocked and clean up */
|
||||
|
|
Loading…
Reference in a new issue