Changeset 159810 in webkit


Ignore:
Timestamp:
Nov 27, 2013 2:47:56 AM (10 years ago)
Author:
calvaris@igalia.com
Message:

[GStreamer] Invalid command line error when visiting www.chessbase.com
https://bugs.webkit.org/show_bug.cgi?id=124715

Reviewed by Philippe Normand.

Source/WebCore:

We were not handling the HTTP errors in the WebKit GStreamer
source and therefore the 404 error page was being 'decoded'. As no
decoder could be found (for obvious reasons), playback failed, but
it should be failing for the source not being found instead of the
decoding problem.

Test: http/tests/media/video-error-does-not-exist.html

  • platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:

(StreamingClient::handleResponseReceived): Handle HTTP errors in
the source and raise a GStreamer error to the pipeline.

LayoutTests:

Copied and adapted for HTTP from
media/video-error-does-not-exist.html.

  • http/tests/media/video-error-does-not-exist-expected.txt: Added.
  • http/tests/media/video-error-does-not-exist.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r159809 r159810  
     12013-11-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer] Invalid command line error when visiting www.chessbase.com
     4        https://bugs.webkit.org/show_bug.cgi?id=124715
     5
     6        Reviewed by Philippe Normand.
     7
     8        Copied and adapted for HTTP from
     9        media/video-error-does-not-exist.html.
     10
     11        * http/tests/media/video-error-does-not-exist-expected.txt: Added.
     12        * http/tests/media/video-error-does-not-exist.html: Added.
     13
    1142013-11-14  Sergio Villar Senin  <svillar@igalia.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r159809 r159810  
     12013-11-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [GStreamer] Invalid command line error when visiting www.chessbase.com
     4        https://bugs.webkit.org/show_bug.cgi?id=124715
     5
     6        Reviewed by Philippe Normand.
     7
     8        We were not handling the HTTP errors in the WebKit GStreamer
     9        source and therefore the 404 error page was being 'decoded'. As no
     10        decoder could be found (for obvious reasons), playback failed, but
     11        it should be failing for the source not being found instead of the
     12        decoding problem.
     13
     14        Test: http/tests/media/video-error-does-not-exist.html
     15
     16        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
     17        (StreamingClient::handleResponseReceived): Handle HTTP errors in
     18        the source and raise a GStreamer error to the pipeline.
     19
    1202013-11-14  Sergio Villar Senin  <svillar@igalia.com>
    221
  • trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp

    r159746 r159810  
    838838    GST_DEBUG_OBJECT(src, "Received response: %d", response.httpStatusCode());
    839839
     840    if (response.httpStatusCode() >= 400) {
     841        // Received error code
     842        GST_ELEMENT_ERROR(src, RESOURCE, READ, ("Received %d HTTP error code", response.httpStatusCode()), (0));
     843        gst_app_src_end_of_stream(priv->appsrc);
     844        webKitWebSrcStop(src);
     845        return;
     846    }
     847
    840848    GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
    841849
Note: See TracChangeset for help on using the changeset viewer.