[vlc-commits] vout_intf: turn the hardcoded snapshot timeout value into a CLOCK_FREQ based value

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


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

vout_intf: turn the hardcoded snapshot timeout value into a CLOCK_FREQ based value

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

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

 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 a7246ddd0d..cd6e96f56a 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -386,7 +386,7 @@ static void VoutSaveSnapshot( vout_thread_t *p_vout )
 
     /* 500ms timeout
      * XXX it will cause trouble with low fps video (< 2fps) */
-    if( vout_GetSnapshot( p_vout, &p_image, &p_picture, NULL, psz_format, 500*1000 ) )
+    if( vout_GetSnapshot( p_vout, &p_image, &p_picture, NULL, psz_format, CLOCK_FREQ/2 ) )
     {
         p_picture = NULL;
         p_image = NULL;



More information about the vlc-commits mailing list