output/snapcast: reset unflushed_input after successful read

With the "wave" encoder, this has no effect, but it's more correct.
This commit is contained in:
Max Kellermann 2021-10-31 16:33:15 +01:00
parent 9a21bdfd6a
commit 056514d598

View File

@ -342,6 +342,8 @@ SnapcastOutput::Play(const void *chunk, size_t size)
if (nbytes == 0)
break;
unflushed_input = 0;
const std::lock_guard<Mutex> protect(mutex);
if (chunks.empty())
inject_event.Schedule();