From d7fb17fec1c3044844a891c349cd701d4be4c445 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 1 Apr 2026 19:24:35 -0400 Subject: [PATCH] Test MPD_IDLE_QUEUE Signed-off-by: Hugo Villeneuve --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 8cf0d0a..7eb99df 100644 --- a/src/main.c +++ b/src/main.c @@ -181,11 +181,14 @@ main(int argc, char **argv) * Wait for specified event(s): * MPD_IDLE_PLAYER: state has changed: play, stop, pause, seek, etc */ - mask = mpd_run_idle_mask(mpdc, MPD_IDLE_PLAYER); + mask = mpd_run_idle_mask(mpdc, MPD_IDLE_PLAYER | MPD_IDLE_QUEUE); if (mask == 0) { (void) mpd_check_for_error(); log_warn("Empty idle event"); continue; /* Or abort/break? */ + } else if (mask &= ~MPD_IDLE_QUEUE) { + log_debug("MPD_IDLE_QUEUE idle event"); + continue; } status = mpd_run_status(mpdc); -- 2.47.3