[Title] MediaPlayer state has been chagned to pause when player is recieved EOS to avoid playback bugs.
[Problem] N_SE-28870, N-SE-29806
[Cause] Duration value becomes infinity because playbin state is changed to NULL when player is recieved EOS.
[Solution] Makes player's state to pause when player is recieved EOS.
Change-Id: I1ab5379465d7e5e255ef373e7e7c42197223f1e8
if (!m_player->mediaPlayerClient()->mediaPlayerIsLooping()) {
m_paused = true;
- gst_element_set_state(m_playBin.get(), GST_STATE_NULL);
#if ENABLE(TIZEN_GSTREAMER_AUDIO)
+ gst_element_set_state(m_playBin.get(), GST_STATE_PAUSED);
if (m_audioSessionManager)
- m_audioSessionManager->setSoundState(ASM_STATE_STOP);
+ m_audioSessionManager->setSoundState(ASM_STATE_PAUSE);
+#else
+ gst_element_set_state(m_playBin.get(), GST_STATE_NULL);
#endif
#if ENABLE(TIZEN_GSTREAMER_VIDEO)