aggregator: fix locking

We would unlock a mutex we never locked on SEGMENT
events.
This commit is contained in:
Tim-Philipp Müller 2014-07-06 16:17:06 +01:00
parent 25c289f6c4
commit 551122c19a

View file

@ -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: