From: Philippe Normand Date: Fri, 10 May 2019 09:39:42 +0000 (+0100) Subject: Fix playback of redirected streams X-Git-Tag: archive/raspbian/2.24.2-1+rpi1^2~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=296a74f9a96dbc441b2e8c3d4bdf7b636fe9f301;p=webkit2gtk.git Fix playback of redirected streams =================================================================== Gbp-Pq: Name fix-redirected-streams.patch --- diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index 253f916d65..534a41a37a 100644 --- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -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));