Title: [291541] trunk/Source/WebCore
Revision
291541
Author
[email protected]
Date
2022-03-20 04:40:47 -0700 (Sun, 20 Mar 2022)

Log Message

[WPE][GStreamer] media playback broken
https://bugs.webkit.org/show_bug.cgi?id=238110

Patch by Zan Dobersek <[email protected]> on 2022-03-20
Reviewed by Philippe Normand.

* platform/graphics/gbm/GBMBufferSwapchain.cpp:
(WebCore::GBMBufferSwapchain::GBMBufferSwapchain):
Fix the assert that's hit when using eight-buffers capacity value. Just
a matter of using the more proper <= operator.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291540 => 291541)


--- trunk/Source/WebCore/ChangeLog	2022-03-20 04:11:32 UTC (rev 291540)
+++ trunk/Source/WebCore/ChangeLog	2022-03-20 11:40:47 UTC (rev 291541)
@@ -1,3 +1,15 @@
+2022-03-20  Zan Dobersek  <[email protected]>
+
+        [WPE][GStreamer] media playback broken
+        https://bugs.webkit.org/show_bug.cgi?id=238110
+
+        Reviewed by Philippe Normand.
+
+        * platform/graphics/gbm/GBMBufferSwapchain.cpp:
+        (WebCore::GBMBufferSwapchain::GBMBufferSwapchain):
+        Fix the assert that's hit when using eight-buffers capacity value. Just
+        a matter of using the more proper <= operator.
+
 2022-03-19  Chris Dumez  <[email protected]>
 
         Optimize EventTarget::visitJSEventListeners()

Modified: trunk/Source/WebCore/platform/graphics/gbm/GBMBufferSwapchain.cpp (291540 => 291541)


--- trunk/Source/WebCore/platform/graphics/gbm/GBMBufferSwapchain.cpp	2022-03-20 04:11:32 UTC (rev 291540)
+++ trunk/Source/WebCore/platform/graphics/gbm/GBMBufferSwapchain.cpp	2022-03-20 11:40:47 UTC (rev 291541)
@@ -36,7 +36,7 @@
 
 GBMBufferSwapchain::GBMBufferSwapchain(BufferSwapchainSize size)
 {
-    ASSERT(unsigned(size) < c_maxBuffers);
+    ASSERT(unsigned(size) <= c_maxBuffers);
     m_array.size = unsigned(size);
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to