From: Hugo Villeneuve Date: Wed, 1 Apr 2026 23:24:35 +0000 (-0400) Subject: Test MPD_IDLE_QUEUE X-Git-Url: http://gitweb.hugovil.com/sitemap.xml?a=commitdiff_plain;h=d7fb17fec1c3044844a891c349cd701d4be4c445;p=mpdstream Test MPD_IDLE_QUEUE Signed-off-by: Hugo Villeneuve --- 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);