summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-07-06 16:17:06 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-07-06 22:09:53 +0100
commit551122c19a673a75463ad08b0872af862b822970 (patch)
tree6ef775edc35f5b1b594976b58e1645ea5f30fe93
parent25c289f6c4f6b822d7e242984fc9417a4a802b45 (diff)
downloadgstreamer-plugins-bad-551122c19a673a75463ad08b0872af862b822970.tar.gz
aggregator: fix locking
We would unlock a mutex we never locked on SEGMENT events.
-rw-r--r--gst-libs/gst/base/gstaggregator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/base/gstaggregator.c b/gst-libs/gst/base/gstaggregator.c
index 0d80f3c75..8a3a3bfb5 100644
--- a/gst-libs/gst/base/gstaggregator.c
+++ b/gst-libs/gst/base/gstaggregator.c
@@ -637,9 +637,9 @@ _sink_event (GstAggregator * self, GstAggregatorPad * aggpad, GstEvent * event)
}
case GST_EVENT_SEGMENT:
{
+ PAD_LOCK_EVENT (aggpad);
gst_event_copy_segment (event, &aggpad->segment);
PAD_UNLOCK_EVENT (aggpad);
-
goto eat;
}
case GST_EVENT_STREAM_START: