Commit 8dc5af51 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

flac: Fix a bad cast from function call warning.

parent 075a0175
......@@ -382,7 +382,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
double *pf = (double*)va_arg( args, double * );
const int64_t i_length = ControlGetLength(p_demux);
if( i_length > 0 )
*pf = (double)ControlGetTime(p_demux) / (double)i_length;
{
double current = ControlGetTime(p_demux);
*pf = current / (double)i_length;
}
else
*pf= 0.0;
return VLC_SUCCESS;
......
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