[vlc-commits] libvlc: transform milliseconds value into vlc_tick_t with VLC_TICK_FROM_MS

Steve Lhomme git at videolan.org
Fri Jul 6 16:07:39 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 15 08:34:15 2018 +0200| [5073e5d0f197571355f75fab27d48749402f9fc7] | committer: Steve Lhomme

libvlc: transform milliseconds value into vlc_tick_t with VLC_TICK_FROM_MS

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

 lib/libvlc_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libvlc_internal.h b/lib/libvlc_internal.h
index a6ba458d54..41e1450dd5 100644
--- a/lib/libvlc_internal.h
+++ b/lib/libvlc_internal.h
@@ -106,7 +106,7 @@ static inline libvlc_time_t from_mtime(vlc_tick_t time)
 
 static inline vlc_tick_t to_mtime(libvlc_time_t time)
 {
-    return time * 1000ULL;
+    return VLC_TICK_FROM_MS(time);
 }
 
 #endif



More information about the vlc-commits mailing list