Commit 0e6ec7ab authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: fix seekability

parent d57688d9
...@@ -406,15 +406,18 @@ static int Open( vlc_object_t * p_this ) ...@@ -406,15 +406,18 @@ static int Open( vlc_object_t * p_this )
p_demux->pf_demux = Demux_Seekable; p_demux->pf_demux = Demux_Seekable;
p_sys->i_read_increment = READ_LENGTH; p_sys->i_read_increment = READ_LENGTH;
} }
else if( p_sys->b_seekable && !p_sys->b_interleaved ) else if( p_sys->b_seekable )
{ {
p_demux->pf_demux = Demux_Seekable; p_demux->pf_demux = Demux_Seekable;
p_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED; p_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED;
msg_Warn( p_demux, "Non seekable non interleaved content over slow seekable, " if( !p_sys->b_interleaved )
"expect bad performance" ); msg_Warn( p_demux, "Non interleaved content over slow seekable, "
"expect bad performance" );
} }
else else
{ {
msg_Warn( p_demux, "Non seekable content " );
p_demux->pf_demux = Demux_UnSeekable; p_demux->pf_demux = Demux_UnSeekable;
p_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED; p_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED;
/* non seekable and non interleaved case ? well... */ /* non seekable and non interleaved case ? well... */
......
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