mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
base: Make upstream events MT-safe
This commit is contained in:
parent
339df347a0
commit
0daedb7409
2 changed files with 5 additions and 0 deletions
|
@ -1759,6 +1759,8 @@ gst_base_src_event_handler (GstPad * pad, GstEvent * event)
|
|||
gboolean result = FALSE;
|
||||
|
||||
src = GST_BASE_SRC (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (src == NULL))
|
||||
return FALSE;
|
||||
bclass = GST_BASE_SRC_GET_CLASS (src);
|
||||
|
||||
if (bclass->event) {
|
||||
|
|
|
@ -2085,6 +2085,9 @@ gst_base_transform_src_event (GstPad * pad, GstEvent * event)
|
|||
gboolean ret = TRUE;
|
||||
|
||||
trans = GST_BASE_TRANSFORM (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (trans == NULL))
|
||||
return FALSE;
|
||||
|
||||
bclass = GST_BASE_TRANSFORM_GET_CLASS (trans);
|
||||
|
||||
if (bclass->src_event)
|
||||
|
|
Loading…
Reference in a new issue