summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2018-06-15 12:27:50 +0200
committerFlorian Müllner <florian.muellner@gmail.com>2018-07-13 12:25:15 +0000
commitb51d32a81263e217ad485d9ef8c80969bd5c9516 (patch)
tree88f3afb18761698b3c91dd557a5609f40fbfba2c
parent3288edf677bdee56340dd0f4c3b8882b82d94fcd (diff)
downloadmutter-cherry-pick-041be7c5.tar.gz
screen-cast-src: Allow negotiating the frameratecherry-pick-041be7c5
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. (cherry picked from commit 041be7c565914c5f078be879b36811b1bc2c1d3a)
-rw-r--r--src/backends/meta-screen-cast-stream-src.c6
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 337755002..457c0589e 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -360,9 +360,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,