Skip to content

Commit

Permalink
[dacp] Listen for queue events to support json api metadata updates
Browse files Browse the repository at this point in the history
Will only work for http and pipe sources

Fixes #1433
  • Loading branch information
ejurgensen committed Mar 22, 2022
1 parent 5b23da9 commit 54aa9c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/httpd_dacp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 54aa9c3

Please sign in to comment.