From ec1fc46c013683469d40db02847b649e57404f41 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sat, 31 Jul 2010 12:31:56 +0200 Subject: [PATCH] Include playlist ID in nowplaying --- src/httpd_dacp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index f37ac092..27e774e4 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -167,7 +167,10 @@ dacp_nowplaying(struct evbuffer *evbuf, struct player_status *status, struct med canp[3] = 1; /* 0-3 database ID */ - /* 4-7 playlist ID FIXME */ + canp[4] = (status->plid >> 24) & 0xff; + canp[5] = (status->plid >> 16) & 0xff; + canp[6] = (status->plid >> 8) & 0xff; + canp[7] = status->plid & 0xff; canp[8] = (status->pos_pl >> 24) & 0xff; /* 8-11 position in playlist */ canp[9] = (status->pos_pl >> 16) & 0xff;