avi: Always use stream_Seek when the stream is seekable
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 5 Oct 2017 17:14:55 +0000 (19:14 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Thu, 5 Oct 2017 17:18:40 +0000 (19:18 +0200)
modules/demux/avi/avi.c

index 53196ed..b521f61 100644 (file)
@@ -1213,16 +1213,7 @@ static int Demux_Seekable( demux_t *p_demux )
         }
         else
         {
-            if( !p_sys->b_fastseekable
-             && (i_pos > vlc_stream_Tell( p_demux->s )) )
-            {
-                vlc_stream_Read( p_demux->s, NULL,
-                                 i_pos - vlc_stream_Tell( p_demux->s ) );
-            }
-            else
-            {
-                vlc_stream_Seek( p_demux->s, i_pos );
-            }
+            vlc_stream_Seek( p_demux->s, i_pos );
         }
 
         /* Set the track to use */