Title: [252284] tags/Safari-609.1.10.1/Source/WebCore
Revision
252284
Author
[email protected]
Date
2019-11-08 16:51:50 -0800 (Fri, 08 Nov 2019)

Log Message

Cherry-pick r252059. rdar://problem/56889717

    http/tests/media/track-in-band-hls-metadata.html sometimes crashes after r251626
    https://bugs.webkit.org/show_bug.cgi?id=203849
    <rdar://problem/56889717>

    Reviewed by Youenn Fablet.

    No new tests, fixes existing test.

    * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
    (-[WebCoreAVFMovieObserver metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:]): Return early if
    m_player has been cleared.
    (-[WebCoreAVFMovieObserver metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:]):
    Ditto.

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252059 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: tags/Safari-609.1.10.1/Source/WebCore/ChangeLog (252283 => 252284)


--- tags/Safari-609.1.10.1/Source/WebCore/ChangeLog	2019-11-09 00:51:47 UTC (rev 252283)
+++ tags/Safari-609.1.10.1/Source/WebCore/ChangeLog	2019-11-09 00:51:50 UTC (rev 252284)
@@ -1,5 +1,42 @@
 2019-11-07  Alan Coon  <[email protected]>
 
+        Cherry-pick r252059. rdar://problem/56889717
+
+    http/tests/media/track-in-band-hls-metadata.html sometimes crashes after r251626
+    https://bugs.webkit.org/show_bug.cgi?id=203849
+    <rdar://problem/56889717>
+    
+    Reviewed by Youenn Fablet.
+    
+    No new tests, fixes existing test.
+    
+    * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+    (-[WebCoreAVFMovieObserver metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:]): Return early if
+    m_player has been cleared.
+    (-[WebCoreAVFMovieObserver metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:]):
+    Ditto.
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2019-11-05  Eric Carlson  <[email protected]>
+
+            http/tests/media/track-in-band-hls-metadata.html sometimes crashes after r251626
+            https://bugs.webkit.org/show_bug.cgi?id=203849
+            <rdar://problem/56889717>
+
+            Reviewed by Youenn Fablet.
+
+            No new tests, fixes existing test.
+
+            * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+            (-[WebCoreAVFMovieObserver metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:]): Return early if
+            m_player has been cleared.
+            (-[WebCoreAVFMovieObserver metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:]):
+            Ditto.
+
+2019-11-07  Alan Coon  <[email protected]>
+
         Cherry-pick r252022. rdar://problem/56550488
 
     REGRESSION (r248750): Drop-down menu for Walgreens 2FA unresponsive to touch

Modified: tags/Safari-609.1.10.1/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (252283 => 252284)


--- tags/Safari-609.1.10.1/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2019-11-09 00:51:47 UTC (rev 252283)
+++ tags/Safari-609.1.10.1/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2019-11-09 00:51:50 UTC (rev 252284)
@@ -3503,6 +3503,9 @@
     UNUSED_PARAM(output);
     UNUSED_PARAM(track);
 
+    if (!m_player || !metadataGroups)
+        return;
+
     m_taskQueue.enqueueTask([player = m_player, metadataGroups = retainPtr(metadataGroups), currentTime = m_player->currentMediaTime()] {
         if (!player)
             return;
@@ -3519,6 +3522,9 @@
     UNUSED_PARAM(indexesOfNewGroups);
     UNUSED_PARAM(indexesOfModifiedGroups);
 
+    if (!m_player || !metadataGroups)
+        return;
+
     m_taskQueue.enqueueTask([player = m_player, metadataGroups = retainPtr(metadataGroups), currentTime = m_player->currentMediaTime()] {
         if (!player)
             return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to