Title: [289142] trunk/Source/WebCore
- Revision
- 289142
- Author
- [email protected]
- Date
- 2022-02-04 16:28:02 -0800 (Fri, 04 Feb 2022)
Log Message
[macOS] ScreenCaptureKitCaptureSource only outputs one frame
https://bugs.webkit.org/show_bug.cgi?id=236161
<rdar://problem/88510634>
Reviewed by Jer Noble.
Don't WTFMove() a lambda-captured variable if the lambda will be called again.
* platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:
(WebCore::ScreenCaptureKitCaptureSource::frameAvailableHandler):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (289141 => 289142)
--- trunk/Source/WebCore/ChangeLog 2022-02-05 00:05:25 UTC (rev 289141)
+++ trunk/Source/WebCore/ChangeLog 2022-02-05 00:28:02 UTC (rev 289142)
@@ -1,3 +1,16 @@
+2022-02-04 Eric Carlson <[email protected]>
+
+ [macOS] ScreenCaptureKitCaptureSource only outputs one frame
+ https://bugs.webkit.org/show_bug.cgi?id=236161
+ <rdar://problem/88510634>
+
+ Reviewed by Jer Noble.
+
+ Don't WTFMove() a lambda-captured variable if the lambda will be called again.
+
+ * platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm:
+ (WebCore::ScreenCaptureKitCaptureSource::frameAvailableHandler):
+
2022-02-04 Ben Nham <[email protected]>
Add PushDatabase
Modified: trunk/Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm (289141 => 289142)
--- trunk/Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm 2022-02-05 00:05:25 UTC (rev 289141)
+++ trunk/Source/WebCore/platform/mediastream/mac/ScreenCaptureKitCaptureSource.mm 2022-02-05 00:28:02 UTC (rev 289142)
@@ -376,7 +376,7 @@
return;
if (!sampleBuffer) {
- RunLoop::main().dispatch([weakThis = WTFMove(weakThis), sampleBuffer = retainPtr(sampleBuffer)]() mutable {
+ RunLoop::main().dispatch([weakThis, sampleBuffer = retainPtr(sampleBuffer)]() mutable {
if (weakThis)
RELEASE_LOG_ERROR(WebRTC, "ScreenCaptureKitCaptureSource::frameAvailableHandler: NULL sample buffer!");
});
@@ -405,7 +405,7 @@
return;
}
- RunLoop::main().dispatch([weakThis = WTFMove(weakThis), sampleBuffer = retainPtr(sampleBuffer)]() mutable {
+ RunLoop::main().dispatch([weakThis, sampleBuffer = retainPtr(sampleBuffer)]() mutable {
if (!weakThis)
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes