`aggpad->segment` is protected by the `aggpad`'s object lock. We need to
take the lock before calling `update_time_level`.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3819>
PAD_FLUSH_UNLOCK (aggpad);
}
-/* Must be called with the the PAD_LOCK held */
+/* Must be called with the PAD_LOCK and OBJECT_LOCK held */
static void
update_time_level (GstAggregatorPad * aggpad, gboolean head)
{
else
aggpad->priv->tail_position = timestamp;
+ GST_OBJECT_LOCK (aggpad);
update_time_level (aggpad, head);
+ GST_OBJECT_UNLOCK (aggpad);
}
/*