[vlc-commits] video_output: turn the deadline duration into a CLOCK_FREQ based value

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


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

video_output: turn the deadline duration 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=988d9cb2a11e7cf8fe17a10323a9ca4f5435a706
---

 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 0af4c34d76..25b75d7e8b 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1798,7 +1798,7 @@ static void *Thread(void *object)
 
         if (wait)
         {
-            const mtime_t max_deadline = mdate() + 100000;
+            const mtime_t max_deadline = mdate() + CLOCK_FREQ/10;
             deadline = deadline == VLC_TS_INVALID ? max_deadline : __MIN(deadline, max_deadline);
         } else {
             deadline = VLC_TS_INVALID;



More information about the vlc-commits mailing list