Changeset 209796 in webkit


Ignore:
Timestamp:
Dec 14, 2016 2:36:32 AM (7 years ago)
Author:
eocanha@igalia.com
Message:

[GStreamer][MSE] Fix player private selection when MSE is enabled
https://bugs.webkit.org/show_bug.cgi?id=164116

Reviewed by Philippe Normand.

Covered by existing tests.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::load):

  • platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:

(WebCore::MediaPlayerPrivateGStreamerMSE::load):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209794 r209796  
     12016-12-14  Enrique Ocaña González  <eocanha@igalia.com>
     2
     3        [GStreamer][MSE] Fix player private selection when MSE is enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=164116
     5
     6        Reviewed by Philippe Normand.
     7
     8        Covered by existing tests.
     9
     10        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     11        (WebCore::MediaPlayerPrivateGStreamer::load):
     12        * platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp:
     13        (WebCore::MediaPlayerPrivateGStreamerMSE::load):
     14
    1152016-12-13  Commit Queue  <commit-queue@webkit.org>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r208096 r209796  
    273273void MediaPlayerPrivateGStreamer::load(const String&, MediaSourcePrivateClient*)
    274274{
    275     notImplemented();
     275    // Properly fail so the global MediaPlayer tries to fallback to the next MediaPlayerPrivate.
     276    m_networkState = MediaPlayer::FormatError;
     277    m_player->networkStateChanged();
    276278}
    277279#endif
  • trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp

    r207956 r209796  
    126126void MediaPlayerPrivateGStreamerMSE::load(const String& urlString)
    127127{
     128    if (!urlString.startsWith("mediasource")) {
     129        // Properly fail so the global MediaPlayer tries to fallback to the next MediaPlayerPrivate.
     130        m_networkState = MediaPlayer::FormatError;
     131        m_player->networkStateChanged();
     132        return;
     133    }
     134
    128135    if (UNLIKELY(!initializeGStreamerAndRegisterWebKitMSEElement()))
    129136        return;
    130 
    131     if (!urlString.startsWith("mediasource")) {
    132         GST_ERROR("Unsupported url: %s", urlString.utf8().data());
    133         return;
    134     }
    135137
    136138    if (!m_playbackPipeline)
Note: See TracChangeset for help on using the changeset viewer.