[vlc-commits] video_output: turn delays/thresholds into CLOCK_FREQ based values

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


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

video_output: turn delays/thresholds into CLOCK_FREQ based values

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

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

 src/video_output/video_output.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 760a868c68..3c9db415df 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -64,15 +64,15 @@ static void VoutDestructor(vlc_object_t *);
 /* Maximum delay between 2 displayed pictures.
  * XXX it is needed for now but should be removed in the long term.
  */
-#define VOUT_REDISPLAY_DELAY (INT64_C(80000))
+#define VOUT_REDISPLAY_DELAY (4*CLOCK_FREQ/50)
 
 /**
  * Late pictures having a delay higher than this value are thrashed.
  */
-#define VOUT_DISPLAY_LATE_THRESHOLD (INT64_C(20000))
+#define VOUT_DISPLAY_LATE_THRESHOLD (CLOCK_FREQ/50)
 
 /* Better be in advance when awakening than late... */
-#define VOUT_MWAIT_TOLERANCE (INT64_C(4000))
+#define VOUT_MWAIT_TOLERANCE (CLOCK_FREQ/250)
 
 /* */
 static int VoutValidateFormat(video_format_t *dst,



More information about the vlc-commits mailing list