[vlc-commits] vout_intf: make the snapshot PIP duration explicit to 4s using CLOCK_FREQ

Steve Lhomme git at videolan.org
Sat May 5 18:16:45 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Sat May  5 10:42:07 2018 +0200| [cca471def7d197c107c025c664bd0299ad0b5abd] | committer: Rémi Denis-Courmont

vout_intf: make the snapshot PIP duration explicit to 4s using CLOCK_FREQ

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/video_output/vout_intf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 14d0c03c5c..a7246ddd0d 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -344,7 +344,7 @@ static int VoutSnapshotPip( vout_thread_t *p_vout, picture_t *p_pic )
      * hardcoded 0 doesn't seem right */
     p_subpic->i_channel = 0;
     p_subpic->i_start = mdate();
-    p_subpic->i_stop  = p_subpic->i_start + 4000000;
+    p_subpic->i_stop  = p_subpic->i_start + CLOCK_FREQ*4;
     p_subpic->b_ephemer = true;
     p_subpic->b_fade = true;
 



More information about the vlc-commits mailing list