[vlc-commits] text_layout: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()
Steve Lhomme
git at videolan.org
Fri Jul 6 16:07:26 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jun 14 14:23:49 2018 +0200| [5bfa9b4a6911128a1d8993ed6fb0355e26d10859] | committer: Steve Lhomme
text_layout: convert vlc_tick_t to milliseconds using MS_FROM_VLC_TICK()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5bfa9b4a6911128a1d8993ed6fb0355e26d10859
---
modules/text_renderer/freetype/text_layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/text_renderer/freetype/text_layout.c b/modules/text_renderer/freetype/text_layout.c
index 8f50be1943..6223441276 100644
--- a/modules/text_renderer/freetype/text_layout.c
+++ b/modules/text_renderer/freetype/text_layout.c
@@ -348,7 +348,7 @@ static paragraph_t *NewParagraph( filter_t *p_filter,
if( pi_k_dates )
{
- int64_t i_elapsed = var_GetInteger( p_filter, "spu-elapsed" ) / 1000;
+ int64_t i_elapsed = MS_FROM_VLC_TICK(var_GetInteger( p_filter, "spu-elapsed" ));
for( int i = 0; i < i_size; ++i )
{
p_paragraph->pi_karaoke_bar[ i ] = pi_k_dates[ i ] >= i_elapsed;
More information about the vlc-commits
mailing list