summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-05-12 14:44:07 +0200
committerMax Kellermann <max@musicpd.org>2018-05-12 14:44:07 +0200
commitc76f4ac89bb8a79c2af417d418ae14c5f190f1a2 (patch)
tree4a39a944ca4731dad5ac5ef250a0c2de86588740
parentd495ec71a89fe9e1e70263302967c0c774ffdba0 (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--NEWS2
-rw-r--r--src/player/Thread.cxx1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 53f24ed5f..06685148b 100644
--- a/NEWS
+++ b/NEWS
@@ -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);
}
}