From fb3b3f25fc0ea9a8f5046aa45682b6c2f43d0391 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 12 Jul 2009 19:31:00 +0300 Subject: [PATCH] input "time" is a time variable, fix assertion failure --- src/text/strings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/text/strings.c b/src/text/strings.c index c73dec6833..1b42933d43 100644 --- a/src/text/strings.c +++ b/src/text/strings.c @@ -825,7 +825,7 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string ) if( p_item && p_input ) { mtime_t i_duration = input_item_GetDuration( p_item ); - int64_t i_time = var_GetInteger( p_input, "time" ); + int64_t i_time = var_GetTime( p_input, "time" ); snprintf( buf, 10, "%02d:%02d:%02d", (int)( ( i_duration - i_time ) / 3600000000 ), (int)( ( ( i_duration - i_time ) / 60000000 ) % 60 ), @@ -893,7 +893,7 @@ char *__str_format_meta( vlc_object_t *p_object, const char *string ) case 'T': if( p_input ) { - int64_t i_time = var_GetInteger( p_input, "time" ); + int64_t i_time = var_GetTime( p_input, "time" ); snprintf( buf, 10, "%02d:%02d:%02d", (int)( i_time / ( 3600000000 ) ), (int)( ( i_time / ( 60000000 ) ) % 60 ), -- 2.39.5