You need to sign in or sign up before continuing.
Commit 58590b71 authored by Christian Kröner's avatar Christian Kröner

Fix pause for OSX output plugin (delay one second)

parent 66a1e8b7
......@@ -867,6 +867,10 @@ OSXOutput::Play(const void *chunk, size_t size)
std::chrono::steady_clock::duration
OSXOutput::Delay() const noexcept
{
// Idle if paused
if(pause)
return std::chrono::seconds(1);
return ring_buffer->write_available()
? std::chrono::steady_clock::duration::zero()
: std::chrono::milliseconds(MPD_OSX_BUFFER_TIME_MS / 4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment