Changeset 162540 in webkit


Ignore:
Timestamp:
Jan 22, 2014 11:24:20 AM (10 years ago)
Author:
jer.noble@apple.com
Message:

[Mac] MediaPlayerPrivateMediaSourceAVFObjC::load ASSERTs on lots of tests
https://bugs.webkit.org/show_bug.cgi?id=127430

Reviewed by Eric Carlson.

When other registered media engines cannot load a URL, the engine selection
will eventually pick MediaPlayerPrivateMediaSourceAVFObjC and ask it to load
the URL. Instead of ASSERTing here, simply reject the URL by setting the
network state to FormatError.

  • platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:

(WebCore::MediaPlayerPrivateMediaSourceAVFObjC::load):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r162538 r162540  
     12014-01-22  Jer Noble  <jer.noble@apple.com>
     2
     3        [Mac] MediaPlayerPrivateMediaSourceAVFObjC::load ASSERTs on lots of tests
     4        https://bugs.webkit.org/show_bug.cgi?id=127430
     5
     6        Reviewed by Eric Carlson.
     7
     8        When other registered media engines cannot load a URL, the engine selection
     9        will eventually pick MediaPlayerPrivateMediaSourceAVFObjC and ask it to load
     10        the URL. Instead of ASSERTing here, simply reject the URL by setting the
     11        network state to FormatError.
     12
     13        * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm:
     14        (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::load):
     15
    1162014-01-22  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
    217
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm

    r161987 r162540  
    222222void MediaPlayerPrivateMediaSourceAVFObjC::load(const String&)
    223223{
    224     ASSERT_NOT_REACHED();
     224    // This media engine only supports MediaSource URLs.
     225    m_networkState = MediaPlayer::FormatError;
     226    m_player->networkStateChanged();
    225227}
    226228
Note: See TracChangeset for help on using the changeset viewer.