[vlc-commits] demux: avi: fix seekability
Francois Cartegnie
git at videolan.org
Fri Jan 5 18:15:28 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 5 18:13:34 2018 +0100| [0e6ec7ab11d2c983aac08a52f53199728e986b77] | committer: Francois Cartegnie
demux: avi: fix seekability
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e6ec7ab11d2c983aac08a52f53199728e986b77
---
modules/demux/avi/avi.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index a28a0a5078..7bfbd3367b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -406,15 +406,18 @@ static int Open( vlc_object_t * p_this )
p_demux->pf_demux = Demux_Seekable;
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_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED;
- msg_Warn( p_demux, "Non seekable non interleaved content over slow seekable, "
- "expect bad performance" );
+ if( !p_sys->b_interleaved )
+ msg_Warn( p_demux, "Non interleaved content over slow seekable, "
+ "expect bad performance" );
}
else
{
+ msg_Warn( p_demux, "Non seekable content " );
+
p_demux->pf_demux = Demux_UnSeekable;
p_sys->i_read_increment = READ_LENGTH_NONINTERLEAVED;
/* non seekable and non interleaved case ? well... */
More information about the vlc-commits
mailing list