From 774d0ad0bca528d811083a801fe46990168fa569 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sun, 25 Feb 2024 19:35:15 +0100 Subject: [PATCH] screen-cast-stream-src: Remove unnecessary enum choice If we don't offer different options there's no need to pretend there's a choice. Fixes: dc2b2e379b ("screen-cast-stream: Add explicit modifier support") Part-of: --- src/backends/meta-screen-cast-stream-src.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c index 43a14beda..fda28c4fb 100644 --- a/src/backends/meta-screen-cast-stream-src.c +++ b/src/backends/meta-screen-cast-stream-src.c @@ -1230,9 +1230,7 @@ on_stream_param_changed (void *data, params[n_params++] = push_format_object ( &pod_builder, priv->video_format.format, &preferred_modifier, 1, TRUE, - SPA_FORMAT_VIDEO_size, SPA_POD_CHOICE_RANGE_Rectangle (&priv->video_format.size, - &priv->video_format.size, - &priv->video_format.size), + SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle (&priv->video_format.size), SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction (&SPA_FRACTION (0, 1)), SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction (&priv->video_format.max_framerate,