diff --git a/src/input/InputStream.hxx b/src/input/InputStream.hxx index 82609e14a..3086a21fc 100644 --- a/src/input/InputStream.hxx +++ b/src/input/InputStream.hxx @@ -287,11 +287,13 @@ public: * for Seek(0, error). */ void Rewind(std::unique_lock &lock) { - Seek(lock, 0); + if (offset > 0) + Seek(lock, 0); } void LockRewind() { - LockSeek(0); + std::unique_lock lock(mutex); + Rewind(lock); } /**