update target state for pending seek
authoryounghwan an <younghwan_.an@samsung.com>
Mon, 12 Nov 2012 06:35:27 +0000 (15:35 +0900)
committeryounghwan an <younghwan_.an@samsung.com>
Mon, 12 Nov 2012 06:35:27 +0000 (15:35 +0900)
src/mm_player_priv.c

index cf07757..4564965 100755 (executable)
@@ -4745,13 +4745,16 @@ static int __gst_start(mm_player_t* player) // @
        /* !! create one more api to check if there is pending seek rather than checking variables */
        if ( (player->pending_seek.is_pending || sound_extraction) && !MMPLAYER_IS_STREAMING(player))
        {
+               MMPLAYER_TARGET_STATE(player) = MM_PLAYER_STATE_PAUSED;
                ret = __gst_pause(player, FALSE);
                if ( ret != MM_ERROR_NONE )
                {
                        debug_error("failed to set state to PAUSED for pending seek\n");
                        return ret;
                }
-                       
+
+               MMPLAYER_TARGET_STATE(player) = MM_PLAYER_STATE_PLAYING;
+
                if ( sound_extraction )
                {
                        debug_log("setting pcm extraction\n");