From 54aa9c32cc0a4810cc2e30e12009d974c40e1455 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 18 Mar 2022 19:53:39 +0100 Subject: [PATCH] [dacp] Listen for queue events to support json api metadata updates Will only work for http and pipe sources Fixes #1433 --- src/httpd_dacp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index e770d762..8822bfda 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -785,10 +785,6 @@ dacp_playstatus_update_handler(short event_mask) { int ret; - // Only send status update on player change events - if (!(event_mask & (LISTENER_PLAYER | LISTENER_VOLUME))) - return; - #ifdef HAVE_EVENTFD ret = eventfd_write(update_efd, 1); if (ret < 0) @@ -2973,7 +2969,7 @@ dacp_init(void) return -1; } - listener_add(dacp_playstatus_update_handler, LISTENER_PLAYER | LISTENER_VOLUME); + listener_add(dacp_playstatus_update_handler, LISTENER_PLAYER | LISTENER_VOLUME | LISTENER_QUEUE); return 0;