jitterbuffer: 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 01:08:38 +01:00 committed by Sebastian Dröge
parent b784173e4a
commit e71a908d96

View file

@ -2084,6 +2084,8 @@ gst_rtp_jitter_buffer_query (GstPad * pad, GstQuery * query)
gboolean res = FALSE;
jitterbuffer = GST_RTP_JITTER_BUFFER (gst_pad_get_parent (pad));
if (G_UNLIKELY (jitterbuffer == NULL))
return FALSE;
priv = jitterbuffer->priv;
switch (GST_QUERY_TYPE (query)) {