Commit db77791b authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

demux: avi: don't allow SET_TIME on non seekable

(cherry picked from commit fd4937f70d6ed2cbd1b05ee6d8f7807618fd7fe1)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b3f6bd62
......@@ -1604,7 +1604,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
int i_percent = 0;
i64 = (int64_t)va_arg( args, int64_t );
if( p_sys->i_length > 0 )
if( !p_sys->b_seekable )
{
return VLC_EGENERIC;
}
else if( p_sys->i_length > 0 )
{
i_percent = 100 * i64 / (p_sys->i_length*1000000);
}
......
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