diff --git a/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx b/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx index 73778e6b8..1970988f7 100644 --- a/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx +++ b/src/output/plugins/snapcast/SnapcastOutputPlugin.cxx @@ -342,6 +342,8 @@ SnapcastOutput::Play(const void *chunk, size_t size) if (nbytes == 0) break; + unflushed_input = 0; + const std::lock_guard protect(mutex); if (chunks.empty()) inject_event.Schedule();