Changeset 171478 in webkit


Ignore:
Timestamp:
Jul 23, 2014 9:20:14 AM (10 years ago)
Author:
jer.noble@apple.com
Message:

[MSE][Mac] Support abort() in SourceBufferPrivateAVFObjC.
https://bugs.webkit.org/show_bug.cgi?id=135163

Reviewed by Brent Fulgham.

Recreate the parser when asked to abort().

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

(WebCore::SourceBufferPrivateAVFObjC::abort):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r171477 r171478  
     12014-07-23  Jer Noble  <jer.noble@apple.com>
     2
     3        [MSE][Mac] Support abort() in SourceBufferPrivateAVFObjC.
     4        https://bugs.webkit.org/show_bug.cgi?id=135163
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Recreate the parser when asked to abort().
     9
     10        * platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm:
     11        (WebCore::SourceBufferPrivateAVFObjC::abort):
     12
    1132014-07-23  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm

    r171033 r171478  
    722722void SourceBufferPrivateAVFObjC::abort()
    723723{
    724     notImplemented();
     724    // The parser does not have a mechanism for resetting to a clean state, so destroy and re-create it.
     725    // FIXME(135164): Support resetting parser to the last appended initialization segment.
     726    destroyParser();
     727
     728    m_parser = adoptNS([[getAVStreamDataParserClass() alloc] init]);
     729    m_delegate = adoptNS([[WebAVStreamDataParserListener alloc] initWithParser:m_parser.get() parent:createWeakPtr()]);
    725730}
    726731
Note: See TracChangeset for help on using the changeset viewer.