[vlc-commits] avi: Always use stream_Seek when the stream is seekable

Hugo Beauzée-Luyssen git at videolan.org
Thu Oct 5 19:18:58 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Oct  5 19:14:55 2017 +0200| [44278639b83003792c5b681f6565714dfb99b985] | committer: Hugo Beauzée-Luyssen

avi: Always use stream_Seek when the stream is seekable

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

 modules/demux/avi/avi.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 53196ed0b9..b521f61954 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -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 */



More information about the vlc-commits mailing list