audioencoder: make upstream queries MT-safe

This commit is contained in:
Mark Nauwelaerts 2011-10-07 14:33:04 +02:00
parent 77069f01b1
commit 37c629fcc6

View file

@ -1495,6 +1495,9 @@ gst_audio_encoder_src_query (GstPad * pad, GstQuery * query)
gboolean res = FALSE;
enc = GST_AUDIO_ENCODER (GST_PAD_PARENT (pad));
if (G_UNLIKELY (enc == NULL))
return FALSE;
peerpad = gst_pad_get_peer (GST_PAD (enc->sinkpad));
GST_LOG_OBJECT (enc, "handling query: %" GST_PTR_FORMAT, query);