Commit 0a27f7da authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

ps: Fix bad function return value cast.

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