mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
audioconvert: Relocate a NULL check before accessing converter
CID 1396745
This commit is contained in:
parent
57ff3ea72f
commit
e112a78826
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue