[0.2.84] change state pre-condition of _start() 86/183786/1 accepted/tizen/unified/20180801.144915 submit/tizen/20180730.025527
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 11 Jul 2018 05:14:57 +0000 (14:14 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 11 Jul 2018 05:14:57 +0000 (14:14 +0900)
Change-Id: I9b74200dbb6ae1462d2a00bf979a47f88539b976

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

index fe5c8ea..420d954 100644 (file)
@@ -989,9 +989,6 @@ int legacy_player_get_state(player_h player, player_state_e *state)
        PLAYER_NULL_ARG_CHECK(state);
        player_s *handle = (player_s *)player;
        *state = handle->state;
-       MMPlayerStateType currentStat = MM_PLAYER_STATE_NULL;
-       mm_player_get_state(handle->mm_handle, &currentStat);
-       /* LOGI("[%s] State : %d (FW state : %d)", __FUNCTION__,handle->state, currentStat); */
        return PLAYER_ERROR_NONE;
 }
 
@@ -1093,7 +1090,7 @@ int legacy_player_start(player_h player)
        PLAYER_INSTANCE_CHECK(player);
        player_s *handle = (player_s *)player;
        int ret;
-       if (handle->state == PLAYER_STATE_READY || handle->state == PLAYER_STATE_PAUSED) {
+       if (handle->state > PLAYER_STATE_IDLE) {
                if (handle->display_type == PLAYER_DISPLAY_TYPE_OVERLAY && handle->is_display_visible) {
                        ret = mm_player_set_attribute(handle->mm_handle, NULL, "display_visible", 1, (char *)NULL);
                        if (ret != MM_ERROR_NONE)
index 3888b95..3d83d8f 100644 (file)
@@ -1,6 +1,6 @@
 Name:       mmsvc-player
 Summary:    A Media Player module for muse server
-Version:    0.2.83
+Version:    0.2.84
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0