Commit e3641b41 authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

do not allocate ISM renderer ivas_sba_dec_reconfigure when it is not required

parent c7856ec1
Loading
Loading
Loading
Loading
Loading
+10 −17
Original line number Diff line number Diff line
@@ -448,7 +448,7 @@ ivas_error ivas_sba_dec_reconfigure(
                return error;
            }

            if ( ( st_ivas->renderer_type == RENDERER_TD_PANNING ||
            if ( st_ivas->renderer_type == RENDERER_TD_PANNING ||
                 st_ivas->renderer_type == RENDERER_NON_DIEGETIC_DOWNMIX ||
                 st_ivas->renderer_type == RENDERER_SBA_LINEAR_ENC ||
                 st_ivas->renderer_type == RENDERER_OSBA_STEREO ||
@@ -457,14 +457,7 @@ ivas_error ivas_sba_dec_reconfigure(
                 st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV ||
                 st_ivas->renderer_type == RENDERER_BINAURAL_FASTCONV_ROOM ||
                 st_ivas->renderer_type == RENDERER_BINAURAL_MIXER_CONV_ROOM
#ifdef OBJ_EDITING_DECODER
                   || st_ivas->renderer_type == RENDERER_BINAURAL_OBJECTS_TD ||
                   st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC ||
                   st_ivas->renderer_type == RENDERER_BINAURAL_PARAMETRIC_ROOM ||
                   st_ivas->renderer_type == RENDERER_DISABLE ||
                   st_ivas->renderer_type == RENDERER_SBA_LINEAR_DEC
#endif
                   ) )
				)
            {
                if ( ( error = ivas_ism_renderer_open( st_ivas ) ) != IVAS_ERR_OK )
                {