Commit 0e1a2635 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

fix Matroska/WebM reading of live HTTP streams


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9333b18f
...@@ -62,7 +62,7 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode ) ...@@ -62,7 +62,7 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode )
break; 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; mb_eof = true;
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment