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:
Havard Graff 2011-03-20 00:56:08 +01:00 committed by Sebastian Dröge
parent 1dac816e9c
commit 3d833e42b6

View file

@ -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);