[vlc-commits] mod: transform vlc_tick_t value to milliseconds with MS_FROM_VLC_TICK
Steve Lhomme
git at videolan.org
Thu Sep 20 12:43:56 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon May 7 16:57:45 2018 +0200| [64463c068b715175b479c204a44cf129f327d25a] | committer: Steve Lhomme
mod: transform vlc_tick_t value to milliseconds with MS_FROM_VLC_TICK
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64463c068b715175b479c204a44cf129f327d25a
---
modules/demux/mod.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index b82553c391..1961265655 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -318,7 +318,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
i64 = f * p_sys->i_length;
if( i64 >= 0 && i64 <= p_sys->i_length )
{
- ModPlug_Seek( p_sys->f, i64 / 1000 );
+ ModPlug_Seek( p_sys->f, MS_FROM_VLC_TICK(i64) );
date_Set( &p_sys->pts, VLC_TICK_0 + i64 );
return VLC_SUCCESS;
More information about the vlc-commits
mailing list