#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")
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);