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

Francois Cartegnie git at videolan.org
Fri Jul 25 04:30:12 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 25 11:28:32 2014 +0900| [2131a8a88aaffca5805080d4fb466d759442cddc] | committer: Francois Cartegnie

demux: avi: missing unseekable method fallback

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2131a8a88aaffca5805080d4fb466d759442cddc
---

 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