From: Olivier CrĂȘte Date: Sat, 14 May 2016 13:52:37 +0000 (+0200) Subject: aggregator: Always handle sync'ed events on output thread X-Git-Tag: 1.19.3~507^2~5220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2335bce9b96c95edeb4bafdabcf4ba39def8ade;p=platform%2Fupstream%2Fgstreamer.git aggregator: Always handle sync'ed events on output thread Having all synchronized events always be handled on the output thread should make synchronization easier. https://bugzilla.gnome.org/show_bug.cgi?id=781673 --- diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c index 1a95fc9..f38d92a 100644 --- a/gst-libs/gst/base/gstaggregator.c +++ b/gst-libs/gst/base/gstaggregator.c @@ -2341,8 +2341,7 @@ gst_aggregator_pad_event_func (GstPad * pad, GstObject * parent, GST_OBJECT_UNLOCK (aggpad); } - if (!gst_aggregator_pad_queue_is_empty (aggpad) && - GST_EVENT_TYPE (event) != GST_EVENT_FLUSH_STOP) { + if (GST_EVENT_TYPE (event) != GST_EVENT_FLUSH_STOP) { GST_DEBUG_OBJECT (aggpad, "Store event in queue: %" GST_PTR_FORMAT, event); g_queue_push_head (&aggpad->priv->buffers, event);