mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
audioencoder: make upstream queries MT-safe
This commit is contained in:
parent
77069f01b1
commit
37c629fcc6
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue