[vlc-commits] commit: fix Matroska/WebM reading of live HTTP streams (Steve Lhomme )

git at videolan.org git at videolan.org
Sun Oct 10 18:37:49 CEST 2010


vlc/vlc-1.1 | branch: master | Steve Lhomme <robux4 at gmail.com> | Sun Oct 10 17:59:15 2010 +0200| [ef920ad5eb70a00270d2d71d83b9b06ff7d60b7f] | committer: Jean-Baptiste Kempf 

fix Matroska/WebM reading of live HTTP streams

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 0e1a2635ecad79f5db007a1509cd029cf2d025de)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 c5570e7..47d2801 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;



More information about the vlc-commits mailing list