[UTC][player][NonACR] Fix Native No Assertion issue 69/315069/4
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 24 Jul 2024 08:37:42 +0000 (17:37 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 26 Jul 2024 05:45:58 +0000 (14:45 +0900)
Change-Id: I64a4fd3312b22ff94d1cf5b74e21ae842206cca0

src/utc/player/utc-media-player-callback.c

index e506736963744c84acb9817fd3d8bad28c53b1eb..d9a3a8f3784821495befcf876f81cb36b7cd02ef 100644 (file)
@@ -729,8 +729,7 @@ int utc_media_player_set_media_packet_audio_frame_decoded_cb_n3(void)
        ret = player_set_audio_codec_type(player, PLAYER_CODEC_TYPE_HW); /* H/W is optional */
        if (ret == PLAYER_ERROR_NONE) {
                int ret2 = player_set_media_packet_audio_frame_decoded_cb(player, NULL, PLAYER_AUDIO_EXTRACT_DEFAULT, player_audio_decoded_cb, NULL);
-               if (ret2 != PLAYER_ERROR_NONE && ret2 != PLAYER_ERROR_NOT_AVAILABLE)
-                       return 1;
+               assert(ret2 == PLAYER_ERROR_NONE || ret2 == PLAYER_ERROR_NOT_AVAILABLE);
        }
 
        return 0;