mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +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;
|
||||
gboolean ret;
|
||||
|
||||
if (ev->event) {
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
|
||||
ret = data->func (pad, &ev->event, data->user_data);
|
||||
|
||||
GST_OBJECT_LOCK (pad);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue