[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:16:37 CEST 2010
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | 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 <jb at videolan.org>
> 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;
More information about the vlc-commits
mailing list