Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-03-21 10:47:04 +0300
committerTim-Philipp Müller <tim@centricular.com>2019-05-02 10:31:25 +0300
commit0396bc2e647cd15ce3ec07ba660d8188c8f34b17 (patch)
tree50836731e878f21b5cd59b22874452b31e53bdc7
parentabc875b3c79623e15e9193e69ee8f40ef63d625b (diff)
aggregator: take the pad lock around queue gap event removal
As is done for every other queue interaction
-rw-r--r--libs/gst/base/gstaggregator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/gst/base/gstaggregator.c b/libs/gst/base/gstaggregator.c
index 368d83be70..01f2b362ec 100644
--- a/libs/gst/base/gstaggregator.c
+++ b/libs/gst/base/gstaggregator.c
@@ -1477,8 +1477,10 @@ gst_aggregator_default_sink_event (GstAggregator * self,
GST_BUFFER_FLAG_SET (gapbuf, GST_BUFFER_FLAG_DROPPABLE);
/* Remove GAP event so we can replace it with the buffer */
+ PAD_LOCK (aggpad);
if (g_queue_peek_tail (&aggpad->priv->data) == event)
gst_event_unref (g_queue_pop_tail (&aggpad->priv->data));
+ PAD_UNLOCK (aggpad);
if (gst_aggregator_pad_chain_internal (self, aggpad, gapbuf, FALSE) !=
GST_FLOW_OK) {