From e366e4058e3513e79b1a74178a3b28fad254044c Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Tue, 17 Oct 2006 20:16:00 +0000 Subject: [PATCH] Fix 32bit/64bit issue in http interface time/length reporting. This needs to be backported to 0.8.6. --- modules/control/http/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/control/http/http.c b/modules/control/http/http.c index cf6b1ff35e..9a8bdc70c2 100644 --- a/modules/control/http/http.c +++ b/modules/control/http/http.c @@ -521,9 +521,9 @@ static void ParseExecute( httpd_file_sys_t *p_args, char *p_buffer, var_Get( p_sys->p_input, "position", &val); sprintf( position, "%d" , (int)((val.f_float) * 100.0)); var_Get( p_sys->p_input, "time", &val); - sprintf( time, "%d" , (int)(val.i_time / 1000000) ); + sprintf( time, I64Fi, val.i_time / 1000000LL ); var_Get( p_sys->p_input, "length", &val); - sprintf( length, "%d" , (int)(val.i_time / 1000000) ); + sprintf( length, I64Fi, val.i_time / 1000000LL ); var_Get( p_sys->p_input, "state", &val ); if( val.i_int == PLAYING_S ) -- 2.39.2