summaryrefslogtreecommitdiff
path: root/src/player
diff options
context:
space:
mode:
authorPatryk HachuĊ‚a <hahiserw@gmail.com>2018-02-05 17:13:00 +0100
committerMax Kellermann <max@musicpd.org>2018-02-25 09:50:03 +0100
commit1628d801f9534ab33a711d337cdd691dca2c5710 (patch)
tree2cd898e2769fe9a897b7c67acf13ac7422df4ed2 /src/player
parent1fb358249b2a4f63d82103348d2904fcef608353 (diff)
playlist/Queue: add one-shot to single mode
Diffstat (limited to 'src/player')
-rw-r--r--src/player/Listener.hxx5
-rw-r--r--src/player/Thread.cxx1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/player/Listener.hxx b/src/player/Listener.hxx
index b34f85398..1f0bdd413 100644
--- a/src/player/Listener.hxx
+++ b/src/player/Listener.hxx
@@ -31,6 +31,11 @@ public:
* The current song's tag has changed.
*/
virtual void OnPlayerTagModified() noexcept = 0;
+
+ /**
+ * Playback went into border pause.
+ */
+ virtual void OnBorderPause() noexcept = 0;
};
#endif
diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx
index 03bf2251f..2ffa5d933 100644
--- a/src/player/Thread.cxx
+++ b/src/player/Thread.cxx
@@ -930,6 +930,7 @@ Player::SongBorder() noexcept
const bool border_pause = pc.ApplyBorderPause();
if (border_pause) {
paused = true;
+ pc.listener.OnBorderPause();
idle_add(IDLE_PLAYER);
}
}