mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
basesrc: Make src query MT-safe
It is possible that the element might be going down while the event arrives
This commit is contained in:
parent
1dac816e9c
commit
3d833e42b6
1 changed files with 2 additions and 0 deletions
|
@ -1112,6 +1112,8 @@ gst_base_src_query (GstPad * pad, GstQuery * query)
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue