Commit c49a7399 authored by stoutjesdijk's avatar stoutjesdijk 🎧
Browse files

enabled head rotation error checking except for the NULL case

parent cd112bf4
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -913,16 +913,16 @@ int main(
#endif
            if ( IVAS_REND_SetHeadRotation( hIvasRend, quatBuffer ) != IVAS_ERR_OK )
            {
                    fprintf(stderr, "Error setting Head Rotation.\r\n");
                    //exit(-1);
                fprintf( stderr, "Error setting Head Rotation\n" );
                exit(-1);
            }
        }
        else
        {
            if ( IVAS_REND_SetHeadRotation( hIvasRend, NULL ) != IVAS_ERR_OK )
            if ( ( IVAS_REND_SetHeadRotation( hIvasRend, NULL ) != IVAS_ERR_OK ) && ( IVAS_REND_SetHeadRotation( hIvasRend, NULL ) != IVAS_ERR_INVALID_OUTPUT_FORMAT) )
            {
                    fprintf(stderr, "Error setting Head Rotation.\r\n");
                    //exit(-1);
                fprintf( stderr, "Error setting Head Rotation\n" );
                exit(-1);
            }
        }

+1 −1
Original line number Diff line number Diff line
@@ -3912,7 +3912,7 @@ ivas_error IVAS_REND_SetHeadRotation(
    if ( getAudioConfigType( hIvasRend->outputConfig ) != IVAS_REND_AUDIO_CONFIG_TYPE_BINAURAL )
    {
        /* Head rotation can be set only with binaural output */
        return IVAS_ERR_METADATA_NOT_EXPECTED;
        return IVAS_ERR_INVALID_OUTPUT_FORMAT;
    }

    if ( headRot == NULL )