mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
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. (cherry picked from commit 041be7c565914c5f078be879b36811b1bc2c1d3a)
This commit is contained in:
parent
3288edf677
commit
b51d32a812
@ -360,7 +360,7 @@ create_pipewire_stream (MetaScreenCastStreamSrc *src,
|
|||||||
":", spa_type->format_video.format, "I", spa_type->video_format.BGRx,
|
":", 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.size, "R", &SPA_RECTANGLE (width, height),
|
||||||
":", spa_type->format_video.framerate, "F", &SPA_FRACTION (0, 1),
|
":", spa_type->format_video.framerate, "F", &SPA_FRACTION (0, 1),
|
||||||
":", spa_type->format_video.max_framerate, "Fr", &max_framerate,
|
":", spa_type->format_video.max_framerate, "Fru", &max_framerate,
|
||||||
PROP_RANGE (&min_framerate,
|
PROP_RANGE (&min_framerate,
|
||||||
&max_framerate));
|
&max_framerate));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user