From: Eunhae Choi Date: Fri, 9 Jun 2017 04:14:14 +0000 (+0900) Subject: [0.3.61] update es push test code X-Git-Tag: accepted/tizen/unified/20170612.073935^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F133121%2F1;p=platform%2Fcore%2Fapi%2Fplayer.git [0.3.61] update es push test code Change-Id: I7afc923c9b61e7bddd8f748c87a120f7d1bb0e3f --- diff --git a/include/player_private.h b/include/player_private.h index 590c845..acec3d0 100644 --- a/include/player_private.h +++ b/include/player_private.h @@ -33,8 +33,10 @@ extern "C" { #define LOG_TAG "TIZEN_N_PLAYER" #define PLAYER_CHECK_CONDITION(condition, error, msg) \ - if (condition) {} else \ - { LOGE("[%s] %s(0x%08x)", __FUNCTION__, msg, error); return error; }; \ +do { \ + if (condition) {} else \ + { LOGE("[%s] %s(0x%08x)", __FUNCTION__, msg, error); return error; }; \ +} while (0) #define PLAYER_INSTANCE_CHECK(player) \ PLAYER_CHECK_CONDITION(player != NULL, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER") diff --git a/packaging/capi-media-player.spec b/packaging/capi-media-player.spec index adf0750..8d3a982 100644 --- a/packaging/capi-media-player.spec +++ b/packaging/capi-media-player.spec @@ -1,6 +1,6 @@ Name: capi-media-player Summary: A Media Player API -Version: 0.3.60 +Version: 0.3.61 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/player_es_push_test.c b/test/player_es_push_test.c index 1f02f86..a3f50a4 100644 --- a/test/player_es_push_test.c +++ b/test/player_es_push_test.c @@ -281,7 +281,7 @@ int bytestream2nalunit(FILE * fd, unsigned char *nal) val = buffer[0]; while (!val) { - if ((zero_count == 2 || zero_count == 3) && val == 1) + if (zero_count == 2 || zero_count == 3) break; zero_count++; result = fread(buffer, 1, read_size, fd);