[vlc-commits] video_output: init the chrono with a CLOCK_FREQ based value

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


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

video_output: init the chrono with 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=44c66f48af1adb48a428716e4b868332a5abd247
---

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

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 3c9db415df..0af4c34d76 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1599,7 +1599,7 @@ static void ThreadInit(vout_thread_t *vout)
     vout->p->pause.is_on     = false;
     vout->p->pause.date      = VLC_TS_INVALID;
 
-    vout_chrono_Init(&vout->p->render, 5, 10000); /* Arbitrary initial time */
+    vout_chrono_Init(&vout->p->render, 5, CLOCK_FREQ/100); /* Arbitrary initial time */
 }
 
 static void ThreadClean(vout_thread_t *vout)



More information about the vlc-commits mailing list