Commit 53ebd8be authored by Dominik Weckbecker's avatar Dominik Weckbecker 💬
Browse files

allocate hMonoDmxRenderer only if it is not already allocated

parent aa22b8dd
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -400,12 +400,15 @@ ivas_error ivas_sba_dec_reconfigure(

#ifdef NONBE_FIX_774_OSBA_MONO_DEC_CRASH
            if ( st_ivas->renderer_type == RENDERER_MONO_DOWNMIX )
            {
                if ( st_ivas->hMonoDmxRenderer == NULL )
                {
                    if ( ( error = ivas_mono_dmx_renderer_open( st_ivas ) ) != IVAS_ERR_OK )
                    {
                        return error;
                    }
                }
            }
            else
            {
                if ( st_ivas->hMonoDmxRenderer != NULL )