Changeset 245054 in webkit


Ignore:
Timestamp:
May 8, 2019 8:20:51 AM (5 years ago)
Author:
Philippe Normand
Message:

REGRESSION(r243197): [GStreamer] Error playing redirected streams
https://bugs.webkit.org/show_bug.cgi?id=197410

Reviewed by Carlos Garcia Campos.

Revert the change introduced in r243197 that was checking the
redirected URI instead of the original URI. Non-main URIs should
be ignored only when they are HLS (or similar) fragments.

Test http/tests/security/canvas-remote-read-remote-video-hls.html still passes.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::handleMessage):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245053 r245054  
     12019-05-08  Philippe Normand  <pnormand@igalia.com>
     2
     3        REGRESSION(r243197): [GStreamer] Error playing redirected streams
     4        https://bugs.webkit.org/show_bug.cgi?id=197410
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Revert the change introduced in r243197 that was checking the
     9        redirected URI instead of the original URI. Non-main URIs should
     10        be ignored only when they are HLS (or similar) fragments.
     11
     12        Test http/tests/security/canvas-remote-read-remote-video-hls.html still passes.
     13
     14        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     15        (WebCore::MediaPlayerPrivateGStreamer::handleMessage):
     16
    1172019-05-08  Rob Buis  <rbuis@igalia.com>
    218
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r244641 r245054  
    13521352#endif
    13531353        else if (gst_structure_has_name(structure, "http-headers")) {
    1354             const char* redirectionUri = gst_structure_get_string(structure, "redirection-uri");
    1355             const char* uri = redirectionUri ? redirectionUri : gst_structure_get_string(structure, "uri");
    1356             if (uri) {
     1354            GST_DEBUG_OBJECT(pipeline(), "Processing HTTP headers: %" GST_PTR_FORMAT, structure);
     1355            if (const char* uri = gst_structure_get_string(structure, "uri")) {
    13571356                URL url(URL(), uri);
    13581357                convertToInternalProtocol(url);
Note: See TracChangeset for help on using the changeset viewer.