summaryrefslogtreecommitdiff
path: root/src/decoder/Control.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-03 12:53:23 +0200
committerMax Kellermann <max@musicpd.org>2019-08-03 12:53:23 +0200
commita90685d6cf6300165d5ad59c160759f7f38cd6c0 (patch)
tree960a1ba56ec91941e676eaf3fffb0c1c108f2b7d /src/decoder/Control.hxx
parentfe2f8c088aa6a4ae97283e0b81a76bbbc51132fc (diff)
parentae19bda1f297727e47b867ca8394692682553958 (diff)
Merge tag 'v0.21.12'
release v0.21.12
Diffstat (limited to 'src/decoder/Control.hxx')
-rw-r--r--src/decoder/Control.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/Control.hxx b/src/decoder/Control.hxx
index b9c021cc4..ee9dde73b 100644
--- a/src/decoder/Control.hxx
+++ b/src/decoder/Control.hxx
@@ -311,6 +311,11 @@ public:
bool IsCurrentSong(const DetachedSong &_song) const noexcept;
gcc_pure
+ bool IsUnseekableCurrentSong(const DetachedSong &_song) const noexcept {
+ return !seekable && IsCurrentSong(_song);
+ }
+
+ gcc_pure
bool IsSeekableCurrentSong(const DetachedSong &_song) const noexcept {
return seekable && IsCurrentSong(_song);
}