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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3617>
This commit is contained in:
Robert Mader 2024-02-25 19:35:15 +01:00 committed by Marge Bot
parent 572801c02f
commit 774d0ad0bc

View File

@ -1230,9 +1230,7 @@ on_stream_param_changed (void *data,
params[n_params++] = push_format_object ( params[n_params++] = push_format_object (
&pod_builder, &pod_builder,
priv->video_format.format, &preferred_modifier, 1, TRUE, priv->video_format.format, &preferred_modifier, 1, TRUE,
SPA_FORMAT_VIDEO_size, SPA_POD_CHOICE_RANGE_Rectangle (&priv->video_format.size, SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle (&priv->video_format.size),
&priv->video_format.size,
&priv->video_format.size),
SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction (&SPA_FRACTION (0, 1)), SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction (&SPA_FRACTION (0, 1)),
SPA_FORMAT_VIDEO_maxFramerate, SPA_FORMAT_VIDEO_maxFramerate,
SPA_POD_CHOICE_RANGE_Fraction (&priv->video_format.max_framerate, SPA_POD_CHOICE_RANGE_Fraction (&priv->video_format.max_framerate,