input/buffering: clear read_error after successful seek

After seeking, a new read should be done.
This commit is contained in:
Max Kellermann
2019-05-16 22:24:57 +02:00
parent 5e266cd8e4
commit 0cf922b2da

View File

@@ -144,6 +144,7 @@ BufferingInputStream::RunThread() noexcept
idle = false; idle = false;
seek = false; seek = false;
read_error = {};
client_cond.notify_one(); client_cond.notify_one();
} else if (!idle && !read_error && } else if (!idle && !read_error &&
offset != input->GetOffset() && offset != input->GetOffset() &&