Commit 95d5c47c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ts: fix warning

parent f4fafb0a
...@@ -1017,7 +1017,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) ...@@ -1017,7 +1017,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( !DVBEventInformation( p_demux, &i_time, &i_length ) && i_length > 0 ) if( !DVBEventInformation( p_demux, &i_time, &i_length ) && i_length > 0 )
*pf = (double)i_time/(double)i_length; *pf = (double)i_time/(double)i_length;
else if( (i64 = stream_Size( p_demux->s) ) > 0 ) else if( (i64 = stream_Size( p_demux->s) ) > 0 )
*pf = (double)stream_Tell( p_demux->s ) / (double)i64; {
int64_t offset = stream_Tell( p_demux->s );
*pf = (double)offset / (double)i64;
}
else else
*pf = 0.0; *pf = 0.0;
} }
......
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