summaryrefslogtreecommitdiffstats
path: root/Source/WebCore
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes <andre.magalhaes@collabora.co.uk>2013-11-12 14:18:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-13 21:09:50 +0100
commit92e8d60fbd4bf8f710a460565db4662d4f259a2d (patch)
treeefa1cc4da3ea540e2fc8524b9208bc1d7ff36033 /Source/WebCore
parent45ccf879f18ee0af0ab5f5cb3c5d520d2996806a (diff)
[GStreamer] cannot play live streams
https://bugs.webkit.org/show_bug.cgi?id=116831 Reviewed by Philippe Normand. Source/WebCore: Fix issues with rtsp streams embedded on <video> not loading. * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Do not reset pipeline to READY state on STATE_CHANGE_ASYNC when entering PAUSED state for live streams, otherwise we enter an endless loop of READY->PAUSED->READY->PAUSED when starting playback. Change-Id: Iec00e0f41ca6b55994524c9864336f765c0d56d3 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155024 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'Source/WebCore')
-rw-r--r--Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
index de27ee07d..9edf53df3 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
@@ -1167,13 +1167,6 @@ void MediaPlayerPrivateGStreamer::updateStates()
case GST_STATE_CHANGE_ASYNC:
LOG_MEDIA_MESSAGE("Async: State: %s, pending: %s", gst_element_state_get_name(state), gst_element_state_get_name(pending));
// Change in progress.
-
- // A live stream was paused, reset the pipeline.
- if (state == GST_STATE_PAUSED && pending == GST_STATE_PLAYING && isLiveStream()) {
- gst_element_set_state(m_playBin.get(), GST_STATE_NULL);
- gst_element_set_state(m_playBin.get(), GST_STATE_PLAYING);
- }
-
break;
case GST_STATE_CHANGE_FAILURE:
LOG_MEDIA_MESSAGE("Failure: State: %s, pending: %s", gst_element_state_get_name(state), gst_element_state_get_name(pending));