diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-06-15 12:27:50 +0200 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2018-07-13 08:59:14 +0000 |
commit | 041be7c565914c5f078be879b36811b1bc2c1d3a (patch) | |
tree | 6fadbce638f54b12bac4af4d17bb3389f02e3882 | |
parent | 0407a8b33d8c3503fba63ad260984bb08bd6e0dc (diff) | |
download | mutter-041be7c565914c5f078be879b36811b1bc2c1d3a.tar.gz |
screen-cast-src: Allow negotiating the framerate
The framerate for screen cast sources was set to variable within 1 FPS
and the framerate of the monitor being screen casted. This meant that if
the sink didn't match the framerate (e.g. had a lower max framerate),
the formats would not match and a stream would not be established.
Allow letting the sink clamp the framerate range by setting it as
'unset', allowing it to be negotiated.
-rw-r--r-- | src/backends/meta-screen-cast-stream-src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c index 8cd8911ae..0c4f33b7d 100644 --- a/src/backends/meta-screen-cast-stream-src.c +++ b/src/backends/meta-screen-cast-stream-src.c @@ -359,9 +359,9 @@ create_pipewire_stream (MetaScreenCastStreamSrc *src, ":", spa_type->format_video.format, "I", spa_type->video_format.BGRx, ":", spa_type->format_video.size, "R", &SPA_RECTANGLE (width, height), ":", spa_type->format_video.framerate, "F", &SPA_FRACTION (0, 1), - ":", spa_type->format_video.max_framerate, "Fr", &max_framerate, - PROP_RANGE (&min_framerate, - &max_framerate)); + ":", spa_type->format_video.max_framerate, "Fru", &max_framerate, + PROP_RANGE (&min_framerate, + &max_framerate)); pw_stream_add_listener (pipewire_stream, &priv->pipewire_stream_listener, |