From 6ed4838738ec639db69729e2e503c614123150ae Mon Sep 17 00:00:00 2001
From: patrick96
Date: Wed, 27 Dec 2017 16:48:24 +0100
Subject: [PATCH] fix(mpd): Update on MPD_IDLE_QUEUE events
MPD_IDLE_PLAYLIST is deprecated since 2009, it has the same value as
MPD_IDLE_QUEUE, so we are now using that
---
src/adapters/mpd.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/adapters/mpd.cpp b/src/adapters/mpd.cpp
index 459551a0..c5516fd2 100644
--- a/src/adapters/mpd.cpp
+++ b/src/adapters/mpd.cpp
@@ -374,7 +374,7 @@ namespace mpd {
* Only update if either the player state (play, stop, pause, seek, ...), the options (random, repeat, ...),
* or the playlist has been changed
*/
- if (connection == nullptr || !static_cast(event & (MPD_IDLE_PLAYER | MPD_IDLE_OPTIONS | MPD_IDLE_PLAYLIST))) {
+ if (connection == nullptr || !static_cast(event & (MPD_IDLE_PLAYER | MPD_IDLE_OPTIONS | MPD_IDLE_QUEUE))) {
return;
}