output/alsa: replace PeriodBuffer::IsEmpty() with IsCleared()
This assertion is not about whether all data has been consumed, but about whether there has been any data at all.
This commit is contained in:
@@ -857,7 +857,7 @@ AlsaOutput::Cancel() noexcept
|
||||
synchronization */
|
||||
|
||||
pcm_export->Reset();
|
||||
assert(period_buffer.IsEmpty());
|
||||
assert(period_buffer.IsCleared());
|
||||
ring_buffer->reset();
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user