demux: avi: missing unseekable method fallback
authorFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 25 Jul 2014 02:28:32 +0000 (11:28 +0900)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Fri, 25 Jul 2014 02:29:22 +0000 (11:29 +0900)
modules/demux/avi/avi.c

index 62afc67..2b5b9a1 100644 (file)
@@ -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" );