]> git.sesse.net Git - vlc/commitdiff
fix Matroska/WebM reading of live HTTP streams
authorSteve Lhomme <robux4@gmail.com>
Sun, 10 Oct 2010 15:59:15 +0000 (17:59 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Oct 2010 16:16:38 +0000 (18:16 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/stream_io_callback.cpp

index 7e62139ea968f8095bd0cac73c4cf8cbb9337e15..8e2bd1bba89e862ddfe204072a08f9e5f77d1421 100644 (file)
@@ -62,7 +62,7 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode )
             break;
     }
 
-    if( i_pos < 0 || i_pos >= stream_Size( s ) )
+    if( i_pos < 0 || ( stream_Size( s ) != 0  && i_pos >= stream_Size( s ) ) )
     {
         mb_eof = true;
         return;