Commit 75171d2b authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Workaround warning on function returned value casted.

parent 9ae21742
...@@ -461,9 +461,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -461,9 +461,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{ {
i64 = stream_Size( p_demux->s ); i64 = stream_Size( p_demux->s );
if( i64 > 0 ) if( i64 > 0 )
*pf = (double)stream_Tell( p_demux->s ) / (double)i64; {
const double f_current = stream_Tell( p_demux->s );
*pf = f_current / (double)i64;
}
else else
{
*pf = 0.0; *pf = 0.0;
}
} }
return VLC_SUCCESS; return VLC_SUCCESS;
......
Supports Markdown
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