Title: [272317] trunk/Source/WebCore
Revision
272317
Author
[email protected]
Date
2021-02-03 09:14:31 -0800 (Wed, 03 Feb 2021)

Log Message

Make sure samples stay valid in LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData
https://bugs.webkit.org/show_bug.cgi?id=221264

Reviewed by Eric Carlson.

Covered by existing tests.

* platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
(WebCore::LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (272316 => 272317)


--- trunk/Source/WebCore/ChangeLog	2021-02-03 16:41:01 UTC (rev 272316)
+++ trunk/Source/WebCore/ChangeLog	2021-02-03 17:14:31 UTC (rev 272317)
@@ -1,3 +1,15 @@
+2021-02-03  Youenn Fablet  <[email protected]>
+
+        Make sure samples stay valid in LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData
+        https://bugs.webkit.org/show_bug.cgi?id=221264
+
+        Reviewed by Eric Carlson.
+
+        Covered by existing tests.
+
+        * platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm:
+        (WebCore::LocalSampleBufferDisplayLayer::requestNotificationWhenReadyForVideoData):
+
 2021-02-03  Fernando Jimenez Moreno  <[email protected]>
 
         [GStreamer] Add DASH support in the registry scanner

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm (272316 => 272317)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm	2021-02-03 16:41:01 UTC (rev 272316)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.mm	2021-02-03 17:14:31 UTC (rev 272317)
@@ -400,8 +400,8 @@
                 requestNotificationWhenReadyForVideoData();
                 return;
             }
-
-            enqueueSampleBuffer(m_pendingVideoSampleQueue.takeFirst().get());
+            auto sample = m_pendingVideoSampleQueue.takeFirst();
+            enqueueSampleBuffer(sample);
         }
     }];
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to