Changeset 202462 in webkit


Ignore:
Timestamp:
Jun 24, 2016 4:54:22 PM (8 years ago)
Author:
jer.noble@apple.com
Message:

MSE gets confused by in-band text tracks
https://bugs.webkit.org/show_bug.cgi?id=159107
<rdar://problem/26871330>

Reviewed by Eric Carlson.

We can't currently handle text track samples in SourceBufferPrivateAVFObjC,
so don't pass them up to SourceBuffer.

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

(WebCore::SourceBufferPrivateAVFObjC::didParseStreamDataAsAsset):
(WebCore::SourceBufferPrivateAVFObjC::processCodedFrame):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r202460 r202462  
     12016-06-24  Jer Noble  <jer.noble@apple.com>
     2
     3        MSE gets confused by in-band text tracks
     4        https://bugs.webkit.org/show_bug.cgi?id=159107
     5        <rdar://problem/26871330>
     6
     7        Reviewed by Eric Carlson.
     8
     9        We can't currently handle text track samples in SourceBufferPrivateAVFObjC,
     10        so don't pass them up to SourceBuffer.
     11
     12        * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
     13        (WebCore::SourceBufferPrivateAVFObjC::didParseStreamDataAsAsset):
     14        (WebCore::SourceBufferPrivateAVFObjC::processCodedFrame):
     15
    1162016-06-24  Mark Lam  <mark.lam@apple.com>
    217
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

    r202431 r202462  
    617617
    618618    for (AVAssetTrack* track in [m_asset tracks]) {
     619        if ([track hasMediaCharacteristic:AVMediaCharacteristicLegible]) {
     620            // FIXME(125161): Handle in-band text tracks.
     621            continue;
     622        }
     623
    619624        if ([track hasMediaCharacteristic:AVMediaCharacteristicVisual]) {
    620625            SourceBufferPrivateClient::InitializationSegment::VideoTrackInformation info;
     
    677682                m_mediaSource->player()->sizeChanged();
    678683        }
     684    } else if (!m_audioRenderers.contains(trackID)) {
     685        // FIXME(125161): We don't handle text tracks, and passing this sample up to SourceBuffer
     686        // will just confuse its state. Drop this sample until we can handle text tracks properly.
     687        return false;
    679688    }
    680689
Note: See TracChangeset for help on using the changeset viewer.