Commit c3cf43d7 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

mod: Fix an other bad cast from function call.

parent 8c873b28
...@@ -318,7 +318,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -318,7 +318,9 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
pf = (double*) va_arg( args, double* ); pf = (double*) va_arg( args, double* );
if( p_sys->i_length > 0 ) if( p_sys->i_length > 0 )
{ {
*pf = (double)date_Get( &p_sys->pts ) / (double)p_sys->i_length; double current = date_Get( &p_sys->pts );
double length = p_sys->i_length;
*pf = current / length;
return VLC_SUCCESS; return VLC_SUCCESS;
} }
return VLC_EGENERIC; return VLC_EGENERIC;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment