From 7c2453cd8c8096b1c0e1d83f91f5fc2fc5c30d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 3 Sep 2023 22:16:53 +0200 Subject: [PATCH] screen-cast/stream-src: Fix min/max framerate typo The min was set to the max, and the max was set to the min, making virtual monitors refresh rate very very slow. Fixes: 215b91a2e6 ("screen-cast/src: Consider preferred format for stream") Part-of: --- src/backends/meta-screen-cast-stream-src.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c index 838e771ba..8d4e32ef6 100644 --- a/src/backends/meta-screen-cast-stream-src.c +++ b/src/backends/meta-screen-cast-stream-src.c @@ -1273,8 +1273,8 @@ create_pipewire_stream (MetaScreenCastStreamSrc *src, struct spa_rectangle min_size = MIN_SIZE; struct spa_rectangle max_size = MAX_SIZE; struct spa_fraction default_framerate = DEFAULT_FRAME_RATE; - struct spa_fraction max_framerate = MIN_FRAME_RATE; - struct spa_fraction min_framerate = MAX_FRAME_RATE; + struct spa_fraction min_framerate = MIN_FRAME_RATE; + struct spa_fraction max_framerate = MAX_FRAME_RATE; struct pw_stream *pipewire_stream; uint8_t buffer[1024]; struct spa_pod_builder pod_builder =