mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
pad: Only let gst_pad_sticky_events_foreach() iterate over existing events
This commit is contained in:
parent
e0f59d22eb
commit
430285b5c8
1 changed files with 5 additions and 3 deletions
|
@ -5174,11 +5174,13 @@ foreach_dispatch_function (GstPad * pad, PadEvent * ev, gpointer user_data)
|
||||||
ForeachDispatch *data = user_data;
|
ForeachDispatch *data = user_data;
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (pad);
|
if (ev->event) {
|
||||||
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
|
||||||
ret = data->func (pad, &ev->event, data->user_data);
|
ret = data->func (pad, &ev->event, data->user_data);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue