Fix playback of redirected streams
authorPhilippe Normand <pnormand@igalia.com>
Fri, 10 May 2019 09:39:42 +0000 (10:39 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 10 May 2019 09:39:42 +0000 (10:39 +0100)
===================================================================

Gbp-Pq: Name fix-redirected-streams.patch

Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

index 253f916d653c42c5d08954956de3d760ea7c6c64..534a41a37a9103eb177e524d37efa18ad83099f2 100644 (file)
@@ -1350,9 +1350,8 @@ void MediaPlayerPrivateGStreamer::handleMessage(GstMessage* message)
         }
 #endif
         else if (gst_structure_has_name(structure, "http-headers")) {
-            const char* redirectionUri = gst_structure_get_string(structure, "redirection-uri");
-            const char* uri = redirectionUri ? redirectionUri : gst_structure_get_string(structure, "uri");
-            if (uri) {
+            GST_DEBUG_OBJECT(pipeline(), "Processing HTTP headers: %" GST_PTR_FORMAT, structure);
+            if (const char* uri = gst_structure_get_string(structure, "uri")) {
                 URL url(URL(), uri);
 
                 m_origins.add(SecurityOrigin::create(url));