Commit 3e69ae8d authored by Pierre's avatar Pierre

pva: Bad function return value cast.

parent 3bbe374b
......@@ -285,7 +285,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( ( i64 = stream_Size( p_demux->s ) ) > 0 )
{
pf = (double*) va_arg( args, double* );
*pf = (double)stream_Tell( p_demux->s ) / (double)i64;
double current = stream_Tell( p_demux->s );
*pf = current / (double)i64;
return VLC_SUCCESS;
}
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