Commit 056514d5 authored by Max Kellermann's avatar Max Kellermann

output/snapcast: reset unflushed_input after successful read

With the "wave" encoder, this has no effect, but it's more correct.
parent 9a21bdfd
......@@ -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();
......
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