multiqueue: Fix hanging if shut down while handling a serialized query

https://bugzilla.gnome.org/show_bug.cgi?id=721253
This commit is contained in:
YanpingZhang 2014-01-03 11:47:23 +08:00 committed by Sebastian Dröge
parent e02c00a58a
commit 1de533735b

View file

@ -740,6 +740,9 @@ gst_multi_queue_change_state (GstElement * element, GstStateChange transition)
sq = (GstSingleQueue *) tmp->data; sq = (GstSingleQueue *) tmp->data;
sq->flushing = TRUE; sq->flushing = TRUE;
g_cond_signal (&sq->turn); g_cond_signal (&sq->turn);
sq->last_query = FALSE;
g_cond_signal (&sq->query_handled);
} }
GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue); GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue);
break; break;