pad: Only let gst_pad_sticky_events_foreach() iterate over existing events

This commit is contained in:
Sebastian Dröge 2013-05-09 10:59:41 +02:00
parent e0f59d22eb
commit 430285b5c8

View file

@ -5174,11 +5174,13 @@ foreach_dispatch_function (GstPad * pad, PadEvent * ev, gpointer user_data)
ForeachDispatch *data = user_data;
gboolean ret;
if (ev->event) {
GST_OBJECT_UNLOCK (pad);
ret = data->func (pad, &ev->event, data->user_data);
GST_OBJECT_LOCK (pad);
}
return ret;
}