[dacp] Listen for queue events to support json api metadata updates

Will only work for http and pipe sources

Fixes #1433
This commit is contained in:
ejurgensen 2022-03-18 19:53:39 +01:00
parent 5b23da9196
commit 54aa9c32cc

View File

@ -785,10 +785,6 @@ dacp_playstatus_update_handler(short event_mask)
{ {
int ret; int ret;
// Only send status update on player change events
if (!(event_mask & (LISTENER_PLAYER | LISTENER_VOLUME)))
return;
#ifdef HAVE_EVENTFD #ifdef HAVE_EVENTFD
ret = eventfd_write(update_efd, 1); ret = eventfd_write(update_efd, 1);
if (ret < 0) if (ret < 0)
@ -2973,7 +2969,7 @@ dacp_init(void)
return -1; 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; return 0;