From e112a788267d163b568feda70b4ea469d130efb6 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 2 Jan 2017 17:56:36 +0530 Subject: [PATCH] audioconvert: Relocate a NULL check before accessing converter CID 1396745 --- gst/audioconvert/gstaudioconvert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index f0f7a7a..6cd7709 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -673,12 +673,12 @@ gst_audio_convert_set_caps (GstBaseTransform * base, GstCaps * incaps, GST_AUDIO_CONVERTER_OPT_NOISE_SHAPING_METHOD, GST_TYPE_AUDIO_NOISE_SHAPING_METHOD, this->ns, NULL)); - in_place = gst_audio_converter_supports_inplace (this->convert); - gst_base_transform_set_in_place (base, in_place); - if (this->convert == NULL) goto no_converter; + in_place = gst_audio_converter_supports_inplace (this->convert); + gst_base_transform_set_in_place (base, in_place); + this->in_info = in_info; this->out_info = out_info; -- 2.7.4