mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-05 10:48:09 -05:00
[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:
parent
5b23da9196
commit
54aa9c32cc
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user