[vlc-commits] demux: avi: missing unseekable method fallback

Francois Cartegnie git at videolan.org
Sat Jul 26 01:30:26 CEST 2014


vlc/vlc-2.2 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 25 11:28:32 2014 +0900| [7424fa5566365e4a281c5f06d8420c661c6b6643] | committer: Jean-Baptiste Kempf

demux: avi: missing unseekable method fallback

(cherry picked from commit 2131a8a88aaffca5805080d4fb466d759442cddc)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=7424fa5566365e4a281c5f06d8420c661c6b6643
---

 modules/demux/avi/avi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 62afc67..2b5b9a1 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -297,7 +297,7 @@ static int Open( vlc_object_t * p_this )
     stream_Control( p_demux->s, STREAM_CAN_SEEK, &p_sys->b_seekable );
 
     p_demux->pf_control = Control;
-    p_demux->pf_demux = Demux_Seekable;
+    p_demux->pf_demux = (p_sys->b_seekable) ? Demux_Seekable : Demux_UnSeekable;
 
     p_sys->b_interleaved = var_InheritBool( p_demux, "avi-interleaved" );
 



More information about the vlc-commits mailing list