]> git.sesse.net Git - vlc/commitdiff
stream.c: fixed a bug when seeking again near the end of the file.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 22 Nov 2004 09:56:48 +0000 (09:56 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 22 Nov 2004 09:56:48 +0000 (09:56 +0000)
src/input/stream.c

index aefd3d0d636faa2e0ff8c67faf4242381bae42fe..4dfaa2f929f8407200f7267411aedaef8132c24d 100644 (file)
@@ -995,7 +995,7 @@ static int AStreamSeekStream( stream_t *s, int64_t i_pos )
             if( p_sys->stream.i_used < 1024 )
                 p_sys->stream.i_used = 1024;
 
-            if( AStreamRefillStream( s ) )
+            if( AStreamRefillStream( s ) && i_pos == tk->i_end )
                 return VLC_EGENERIC;
 
             return VLC_SUCCESS;