From aa2cb8a4f7645d96813d7963190c16c6059b3a68 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 27 Jan 2021 08:50:46 -0300 Subject: [PATCH] screen-cast-*-stream-src: Switch to cogl_framebuffer_flush() PipeWire recently introduced busy buffers, which actually fixes the last remaining issue that blocked us from downgrading these cogl_framebuffer_finish() calls into cogl_framebuffer_flush() ones. Switch to cogl_framebuffer_flush() in all three stream sources. Part-of: --- src/backends/meta-screen-cast-area-stream-src.c | 2 +- src/backends/meta-screen-cast-monitor-stream-src.c | 2 +- src/backends/meta-screen-cast-window-stream-src.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backends/meta-screen-cast-area-stream-src.c b/src/backends/meta-screen-cast-area-stream-src.c index 281f6f2e9..b7de04d7b 100644 --- a/src/backends/meta-screen-cast-area-stream-src.c +++ b/src/backends/meta-screen-cast-area-stream-src.c @@ -485,7 +485,7 @@ meta_screen_cast_area_stream_src_record_to_framebuffer (MetaScreenCastStreamSrc area, scale, paint_flags); - cogl_framebuffer_finish (framebuffer); + cogl_framebuffer_flush (framebuffer); return TRUE; } diff --git a/src/backends/meta-screen-cast-monitor-stream-src.c b/src/backends/meta-screen-cast-monitor-stream-src.c index 3011d0d19..6753f176a 100644 --- a/src/backends/meta-screen-cast-monitor-stream-src.c +++ b/src/backends/meta-screen-cast-monitor-stream-src.c @@ -608,7 +608,7 @@ meta_screen_cast_monitor_stream_src_record_to_framebuffer (MetaScreenCastStreamS } } - cogl_framebuffer_finish (framebuffer); + cogl_framebuffer_flush (framebuffer); return TRUE; } diff --git a/src/backends/meta-screen-cast-window-stream-src.c b/src/backends/meta-screen-cast-window-stream-src.c index 3fe8120f2..014a97c32 100644 --- a/src/backends/meta-screen-cast-window-stream-src.c +++ b/src/backends/meta-screen-cast-window-stream-src.c @@ -501,7 +501,7 @@ meta_screen_cast_window_stream_src_record_to_framebuffer (MetaScreenCastStreamSr break; } - cogl_framebuffer_finish (framebuffer); + cogl_framebuffer_flush (framebuffer); return TRUE; }