Commit 304ebdfa authored by Jouni Paulus's avatar Jouni Paulus
Browse files

remove the DirAC dec reconfig from the renderer part, since it's done later

parent 23805ff8
Loading
Loading
Loading
Loading
+6 −15
Original line number Diff line number Diff line
@@ -1095,17 +1095,7 @@ ivas_error ivas_masa_dec_reconfigure(
    /* renderer might have changed, reselect */
    ivas_renderer_select( st_ivas );

    if ( st_ivas->renderer_type != RENDERER_DISABLE )
    {
        if ( st_ivas->hDirAC != NULL )
        {
            /* reconfigure existing DirAC dec */
            if ( ( error = ivas_dirac_dec_config( st_ivas, DIRAC_RECONFIGURE ) ) != IVAS_ERR_OK )
            {
                return error;
            }
        }
        else
    if ( st_ivas->renderer_type != RENDERER_DISABLE && st_ivas->hDirAC == NULL )
    {
        /* init a new DirAC dec */
        if ( ( error = ivas_dirac_dec_config( st_ivas, DIRAC_OPEN ) ) != IVAS_ERR_OK )
@@ -1113,11 +1103,12 @@ ivas_error ivas_masa_dec_reconfigure(
            return error;
        }
    }
    }
    else if ( st_ivas->renderer_type == RENDERER_DISABLE && st_ivas->hDirAC != NULL )
    {
        /* close unnecessary DirAC dec */
        ivas_dirac_dec_close( &( st_ivas->hDirAC ) );
    }
    /* possible reconfigure is done later */
#endif

    /*-----------------------------------------------------------------*