Title: [171478] trunk/Source/WebCore
Revision
171478
Author
[email protected]
Date
2014-07-23 09:20:14 -0700 (Wed, 23 Jul 2014)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (171477 => 171478)


--- trunk/Source/WebCore/ChangeLog	2014-07-23 14:57:15 UTC (rev 171477)
+++ trunk/Source/WebCore/ChangeLog	2014-07-23 16:20:14 UTC (rev 171478)
@@ -1,3 +1,15 @@
+2014-07-23  Jer Noble  <[email protected]>
+
+        [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):
+
 2014-07-23  Myles C. Maxfield  <[email protected]>
 
         Migrate accessibility/ to using nullptr instead of 0

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm (171477 => 171478)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm	2014-07-23 14:57:15 UTC (rev 171477)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm	2014-07-23 16:20:14 UTC (rev 171478)
@@ -721,7 +721,12 @@
 
 void SourceBufferPrivateAVFObjC::abort()
 {
-    notImplemented();
+    // The parser does not have a mechanism for resetting to a clean state, so destroy and re-create it.
+    // FIXME(135164): Support resetting parser to the last appended initialization segment.
+    destroyParser();
+
+    m_parser = adoptNS([[getAVStreamDataParserClass() alloc] init]);
+    m_delegate = adoptNS([[WebAVStreamDataParserListener alloc] initWithParser:m_parser.get() parent:createWeakPtr()]);
 }
 
 void SourceBufferPrivateAVFObjC::destroyParser()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to