vlc | branch: master | Steve Lhomme <[email protected]> | Sun Oct 10 17:59:15 
2010 +0200| [0e1a2635ecad79f5db007a1509cd029cf2d025de] | committer: 
Jean-Baptiste Kempf 

fix Matroska/WebM reading of live HTTP streams

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/demux/mkv/stream_io_callback.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/mkv/stream_io_callback.cpp 
b/modules/demux/mkv/stream_io_callback.cpp
index 7e62139..8e2bd1b 100644
--- a/modules/demux/mkv/stream_io_callback.cpp
+++ b/modules/demux/mkv/stream_io_callback.cpp
@@ -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;

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to