diff options
author | Max Kellermann <max@musicpd.org> | 2018-05-12 14:44:07 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-05-12 14:44:07 +0200 |
commit | c76f4ac89bb8a79c2af417d418ae14c5f190f1a2 (patch) | |
tree | 4a39a944ca4731dad5ac5ef250a0c2de86588740 | |
parent | d495ec71a89fe9e1e70263302967c0c774ffdba0 (diff) |
player/Thread: pause all outputs in single mode
This mostly affects the Pulse output plugin which needs to "cork" the
stream (closes #278).
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/player/Thread.cxx | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,8 @@ ver 0.20.20 (not yet released) * protocol - fix "modified-since" filter regression +* output + - pulse: cork stream when paused due to "single" mode * decoder - dsdiff, dsf: support more MIME types - dsdiff, dsf: allow 4 MB ID3 tags diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 651117088..fcb7b39da 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -950,6 +950,7 @@ Player::SongBorder() const bool border_pause = pc.LockApplyBorderPause(); if (border_pause) { paused = true; + pc.outputs.Pause(); idle_add(IDLE_PLAYER); } } |