From 99962c72e479c947d247beb1202e75da7e8cc249 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Wed, 18 May 2011 16:29:10 +0200 Subject: pad: Don't forget to take the object lock when getting a sticky event --- gst/gstpad.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gst') diff --git a/gst/gstpad.c b/gst/gstpad.c index 5938744c1..35ecd1619 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -4899,11 +4899,13 @@ gst_pad_get_sticky_event (GstPad * pad, GstEventType event_type, idx = GST_EVENT_STICKY_IDX_TYPE (event_type); + GST_OBJECT_LOCK (pad); if (!active || pad->priv->events[idx].active) { if ((event = pad->priv->events[idx].event)) { gst_event_ref (event); } } + GST_OBJECT_UNLOCK (pad); return event; } -- cgit v1.2.3