/* NOTE: It should be worked as asynchronously.
* Because, buffering can be completed during autoplugging when pipeline would try to go playing state directly.
*/
+ if (current_state == MM_PLAYER_STATE_PLAYING) {
+ /* NOTE: If the current state is PLAYING, it means, async __gst_pause() is not completed yet.
+ * The current state should be changed to paused purposely to prevent state conflict.
+ */
+ MMPLAYER_SET_STATE(player, MM_PLAYER_STATE_PAUSED);
+ }
__gst_resume(player, TRUE);
break;
return MM_ERROR_PLAYER_INVALID_URI;
}
- LOGD("subtitle file path is [%s].\n", subtitle_uri);
+ SECURE_LOGD("subtitle file path is [%s].\n", subtitle_uri);
MMPLAYER_SUBTITLE_INFO_LOCK(player);
player->subtitle_language_list = NULL;