[vlc-commits] screen: set the output frame rate based on the fps

Steve Lhomme git at videolan.org
Tue Jul 26 16:23:38 CEST 2016


vlc/vlc-2.2 | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Jul 26 16:14:12 2016 +0200| [e8bd39c10be4bf971888d64654cc22a0f1e6c2c2] | committer: Jean-Baptiste Kempf

screen: set the output frame rate based on the fps

Fixes #14646

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=e8bd39c10be4bf971888d64654cc22a0f1e6c2c2
---

 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 4b1f4f5..862dbb4 100644
--- a/modules/access/screen/screen.c
+++ b/modules/access/screen/screen.c
@@ -179,6 +179,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 );



More information about the vlc-commits mailing list