From: Sebastian Dröge Date: Wed, 18 May 2011 14:29:10 +0000 (+0200) Subject: pad: Don't forget to take the object lock when getting a sticky event X-Git-Tag: RELEASE-0.11.0~270 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99962c72e479c947d247beb1202e75da7e8cc249;p=platform%2Fupstream%2Fgstreamer.git pad: Don't forget to take the object lock when getting a sticky event --- diff --git a/gst/gstpad.c b/gst/gstpad.c index 5938744c1a..35ecd16190 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; }