output/pulse: don't drain if stream is suspended or corked
In this state, we can't make any progress. Closes https://github.com/MusicPlayerDaemon/MPD/issues/1084
This commit is contained in:
@@ -830,7 +830,9 @@ PulseOutput::Drain()
|
||||
{
|
||||
Pulse::LockGuard lock(mainloop);
|
||||
|
||||
if (pa_stream_get_state(stream) != PA_STREAM_READY)
|
||||
if (pa_stream_get_state(stream) != PA_STREAM_READY ||
|
||||
pa_stream_is_suspended(stream) ||
|
||||
pa_stream_is_corked(stream))
|
||||
return;
|
||||
|
||||
pa_operation *o =
|
||||
|
Reference in New Issue
Block a user