diff options
Diffstat (limited to 'src/input/IcyInputStream.cxx')
-rw-r--r-- | src/input/IcyInputStream.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/IcyInputStream.cxx b/src/input/IcyInputStream.cxx index f24399e85..46ebeaca4 100644 --- a/src/input/IcyInputStream.cxx +++ b/src/input/IcyInputStream.cxx @@ -104,8 +104,11 @@ IcyInputStream::Read(std::unique_lock<Mutex> &lock, while (true) { size_t nbytes = ProxyInputStream::Read(lock, ptr, read_size); - if (nbytes == 0) + if (nbytes == 0) { + assert(IsEOF()); + offset = override_offset; return 0; + } size_t result = parser->ParseInPlace(ptr, nbytes); if (result > 0) { |