playlist/Queue: add one-shot to single mode

This commit is contained in:
Patryk Hachuła
2018-02-05 17:13:00 +01:00
committed by Max Kellermann
parent 1fb358249b
commit 1628d801f9
15 changed files with 183 additions and 21 deletions

View File

@@ -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

View File

@@ -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);
}
}