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:
parent
9a21bdfd6a
commit
056514d598
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user