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:
		@@ -342,6 +342,8 @@ SnapcastOutput::Play(const void *chunk, size_t size)
 | 
				
			|||||||
		if (nbytes == 0)
 | 
							if (nbytes == 0)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							unflushed_input = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const std::lock_guard<Mutex> protect(mutex);
 | 
							const std::lock_guard<Mutex> protect(mutex);
 | 
				
			||||||
		if (chunks.empty())
 | 
							if (chunks.empty())
 | 
				
			||||||
			inject_event.Schedule();
 | 
								inject_event.Schedule();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user