Bug 227904

Summary: [GStreamer] RTSP playback broken
Product: WebKit Reporter: Philippe Normand <pnormand>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Philippe Normand 2021-07-13 06:06:14 PDT
player doesn't start. See also https://github.com/Igalia/meta-webkit/issues/293
Comment 1 Philippe Normand 2021-11-29 01:45:59 PST
Workaround:

diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
index b6911dff7994..ba5c2412f796 100644
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
@@ -2348,8 +2348,7 @@ void MediaPlayerPrivateGStreamer::updateStates()
         else if (m_currentState == GST_STATE_PLAYING)
             m_isPaused = false;
-        if (!m_isPaused && m_playbackRate)
-            changePipelineState(GST_STATE_PLAYING);
+        changePipelineState(GST_STATE_PLAYING);
         m_networkState = MediaPlayer::NetworkState::Loading;
         break;