[vlc-devel] [PATCH] screen: set the output frame rate based on the fps
Steve Lhomme
robux4 at videolabs.io
Tue Jul 26 16:14:12 CEST 2016
Fixes #14646
It works in 3.0 but this patches is needed on the 2.2 branch
---
modules/access/screen/screen.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/screen/screen.c b/modules/access/screen/screen.c
index 66a1396..a89ad0d 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -180,6 +180,9 @@ static int Open( vlc_object_t *p_this )
return VLC_EGENERIC;
}
+ p_sys->fmt.video.i_frame_rate = 1000000;
+ p_sys->fmt.video.i_frame_rate_base = p_sys->i_incr;
+
msg_Dbg( p_demux, "screen width: %i, height: %i, depth: %i",
p_sys->fmt.video.i_width, p_sys->fmt.video.i_height,
p_sys->fmt.video.i_bits_per_pixel );
--
2.8.2
More information about the vlc-devel
mailing list