Title: [291076] trunk/Source/WebCore
Revision
291076
Author
[email protected]
Date
2022-03-09 14:31:53 -0800 (Wed, 09 Mar 2022)

Log Message

Fix AppleWin build
https://bugs.webkit.org/show_bug.cgi?id=236131

* platform/VideoFrame.cpp:
(WebCore::VideoFrame::asVideoFrameCV):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291075 => 291076)


--- trunk/Source/WebCore/ChangeLog	2022-03-09 22:25:11 UTC (rev 291075)
+++ trunk/Source/WebCore/ChangeLog	2022-03-09 22:31:53 UTC (rev 291076)
@@ -1,3 +1,11 @@
+2022-03-09  Alex Christensen  <[email protected]>
+
+        Fix AppleWin build
+        https://bugs.webkit.org/show_bug.cgi?id=236131
+
+        * platform/VideoFrame.cpp:
+        (WebCore::VideoFrame::asVideoFrameCV):
+
 2022-03-09  Antoine Quint  <[email protected]>
 
         [web-animations] dominant-baseline should support discrete animation

Modified: trunk/Source/WebCore/platform/VideoFrame.cpp (291075 => 291076)


--- trunk/Source/WebCore/platform/VideoFrame.cpp	2022-03-09 22:25:11 UTC (rev 291075)
+++ trunk/Source/WebCore/platform/VideoFrame.cpp	2022-03-09 22:31:53 UTC (rev 291076)
@@ -123,16 +123,20 @@
     const_cast<VideoRotation&>(m_rotation) = rotation;
 }
 
-#if PLATFORM(COCOA)
+#if USE(AVFOUNDATION)
 RefPtr<VideoFrameCV> VideoFrame::asVideoFrameCV()
 {
+#if PLATFORM(COCOA)
     auto buffer = pixelBuffer();
     if (!buffer)
         return nullptr;
 
     return VideoFrameCV::create(presentationTime(), videoMirrored(), videoRotation(), buffer);
+#else
+    return nullptr;
+#endif
 }
-#endif
+#endif // USE(AVFOUNDATION)
 
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to