From ab8e3bea00e6864e86ece7c18648fdeb7c99e115 Mon Sep 17 00:00:00 2001 From: columbarius Date: Wed, 26 May 2021 01:10:04 +0200 Subject: [PATCH] pipewire: stop announcing a range as the video size We can only serve a video with a size as send from the compositor, so no need to announce any range. --- src/screencast/pipewire_screencast.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/screencast/pipewire_screencast.c b/src/screencast/pipewire_screencast.c index 3e4ee94..f36c293 100644 --- a/src/screencast/pipewire_screencast.c +++ b/src/screencast/pipewire_screencast.c @@ -43,10 +43,7 @@ static struct spa_pod *build_format(struct spa_pod_builder *b, enum spa_video_fo SPA_POD_CHOICE_ENUM_Id(3, format, format, format_without_alpha), 0); } spa_pod_builder_add(b, SPA_FORMAT_VIDEO_size, - SPA_POD_CHOICE_RANGE_Rectangle( - &SPA_RECTANGLE(width, height), - &SPA_RECTANGLE(1, 1), - &SPA_RECTANGLE(4096, 4096)), + SPA_POD_Rectangle(&SPA_RECTANGLE(width, height)), 0); // variable framerate spa_pod_builder_add(b, SPA_FORMAT_VIDEO_framerate,