[vlc-commits] decoder: don't use float to get 1/5s in mtime_t
Steve Lhomme
git at videolan.org
Sat May 5 18:10:16 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri May 4 14:25:16 2018 +0200| [2d73cbf5680f7ca765cbfd56edeffb8db9569e2b] | committer: Rémi Denis-Courmont
decoder: don't use float to get 1/5s in mtime_t
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d73cbf5680f7ca765cbfd56edeffb8db9569e2b
---
src/input/decoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 94b07533a8..7c95788df9 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -148,7 +148,7 @@ struct decoder_owner_sys_t
#define DECODER_BOGUS_VIDEO_DELAY ((mtime_t)(DEFAULT_PTS_DELAY * 30))
/* */
-#define DECODER_SPU_VOUT_WAIT_DURATION ((int)(0.200*CLOCK_FREQ))
+#define DECODER_SPU_VOUT_WAIT_DURATION (CLOCK_FREQ/5)
#define BLOCK_FLAG_CORE_PRIVATE_RELOADED (1 << BLOCK_FLAG_CORE_PRIVATE_SHIFT)
#define VLC_TS_OLDEST (VLC_TS_INVALID + 1)
More information about the vlc-commits
mailing list