[0.3.61] update es push test code 21/133121/1 accepted/tizen/unified/20170612.073935 submit/tizen/20170609.042751 submit/tizen/20170612.030425
authorEunhae Choi <eunhae1.choi@samsung.com>
Fri, 9 Jun 2017 04:14:14 +0000 (13:14 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Fri, 9 Jun 2017 04:14:14 +0000 (13:14 +0900)
Change-Id: I7afc923c9b61e7bddd8f748c87a120f7d1bb0e3f

include/player_private.h
packaging/capi-media-player.spec
test/player_es_push_test.c

index 590c845..acec3d0 100644 (file)
@@ -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")
index adf0750..8d3a982 100644 (file)
@@ -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
index 1f02f86..a3f50a4 100644 (file)
@@ -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);