mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-25 00:28:21 +00:00
audioresample: 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
0688521103
commit
8ff295a788
1 changed files with 5 additions and 1 deletions
|
@ -1264,8 +1264,12 @@ static gboolean
|
|||
gst_audio_resample_query (GstPad * pad, GstQuery * query)
|
||||
{
|
||||
GstAudioResample *resample = GST_AUDIO_RESAMPLE (gst_pad_get_parent (pad));
|
||||
GstBaseTransform *trans = GST_BASE_TRANSFORM (resample);
|
||||
GstBaseTransform *trans;
|
||||
gboolean res = TRUE;
|
||||
if (G_UNLIKELY (resample == NULL))
|
||||
return FALSE;
|
||||
|
||||
trans = GST_BASE_TRANSFORM (resample);
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_LATENCY:
|
||||
|
|
Loading…
Reference in a new issue