// Reset network and ready states. Those will be set properly once
// the pipeline pre-rolled.
+#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+ if (!m_delayingLoad)
+ m_networkState = MediaPlayer::Loading;
+ else
+ m_networkState = MediaPlayer::Idle;
+#else
m_networkState = MediaPlayer::Loading;
+#endif
m_player->networkStateChanged();
m_readyState = MediaPlayer::HaveNothing;
m_player->readyStateChanged();
// GStreamer needs to have the pipeline set to a paused state to
// start providing anything useful.
+#if ENABLE(TIZEN_GSTREAMER_VIDEO)
+ if (!m_delayingLoad)
+#endif
gst_element_set_state(m_playBin.get(), GST_STATE_PAUSED);
#if ENABLE(TIZEN_GSTREAMER_AUDIO)
- if (m_audioSessionManager)
+ if (m_audioSessionManager && !m_delayingLoad)
m_audioSessionManager->setSoundState(ASM_STATE_PAUSE);
#endif