summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-18 16:29:10 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2011-05-18 16:29:10 +0200
commit99962c72e479c947d247beb1202e75da7e8cc249 (patch)
treeeae7220a17ce44b486659855e2d2929e600d64cf /gst
parent6b30f0b05656b8ad760af894f089f47afc6269e0 (diff)
pad: Don't forget to take the object lock when getting a sticky event
Diffstat (limited to 'gst')
-rw-r--r--gst/gstpad.c2
1 files changed, 2 insertions, 0 deletions
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;
}