[0.2.76] resolve state check err 64/174464/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 2 Apr 2018 08:43:02 +0000 (17:43 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 4 Apr 2018 10:15:13 +0000 (19:15 +0900)
Change-Id: I557522c6d10697ad6736faf59e82f93a16caa2f0

legacy/src/legacy_player.c
packaging/mmsvc-player.spec

index 5a72e10..1bc150e 100644 (file)
@@ -2868,8 +2868,8 @@ int legacy_player_set_streaming_buffering_time(player_h player, int buffer_ms, i
        player_s *handle = (player_s *)player;
        int ret = MM_ERROR_NONE;
 
-       if (!__player_state_validate(handle, PLAYER_STATE_IDLE)) {
-               LOGE("[%s] PLAYER_ERROR_INVALID_STATE (0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
+       if (handle->state != PLAYER_STATE_IDLE) {
+               LOGE("[%s] PLAYER_ERROR_INVALID_STATE(0x%08x) : current state - %d", __FUNCTION__, PLAYER_ERROR_INVALID_STATE, handle->state);
                return PLAYER_ERROR_INVALID_STATE;
        }
 
index 234a472..370223f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.75
+Version:    0.2.76
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0