mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
Lower log level to spam for DMAP investigation and add dmap_add_raw_uint32() for later use
This commit is contained in:
parent
28b485c595
commit
7bb2fef25f
@ -167,6 +167,20 @@ dmap_add_literal(struct evbuffer *evbuf, char *tag, char *str, int len)
|
|||||||
evbuffer_add(evbuf, str, len);
|
evbuffer_add(evbuf, str, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
dmap_add_raw_uint32(struct evbuffer *evbuf, uint32_t val)
|
||||||
|
{
|
||||||
|
unsigned char buf[4];
|
||||||
|
|
||||||
|
/* Value */
|
||||||
|
buf[0] = (val >> 24) & 0xff;
|
||||||
|
buf[1] = (val >> 16) & 0xff;
|
||||||
|
buf[2] = (val >> 8) & 0xff;
|
||||||
|
buf[3] = val & 0xff;
|
||||||
|
|
||||||
|
evbuffer_add(evbuf, buf, sizeof(buf));
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
dmap_add_string(struct evbuffer *evbuf, char *tag, const char *str)
|
dmap_add_string(struct evbuffer *evbuf, char *tag, const char *str)
|
||||||
{
|
{
|
||||||
@ -427,7 +441,7 @@ dmap_encode_file_metadata(struct evbuffer *songlist, struct evbuffer *song, stru
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_DAAP, "Investigating %s\n", df->desc);
|
DPRINTF(E_SPAM, L_DAAP, "Investigating %s\n", df->desc);
|
||||||
|
|
||||||
strval = (char **) ((char *)dbmfi + dfm->mfi_offset);
|
strval = (char **) ((char *)dbmfi + dfm->mfi_offset);
|
||||||
|
|
||||||
@ -476,7 +490,7 @@ dmap_encode_file_metadata(struct evbuffer *songlist, struct evbuffer *song, stru
|
|||||||
|
|
||||||
dmap_add_field(song, df, *strval, val);
|
dmap_add_field(song, df, *strval, val);
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", df->desc, *strval);
|
DPRINTF(E_SPAM, L_DAAP, "Done with meta tag %s (%s)\n", df->desc, *strval);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sort_tags)
|
if (sort_tags)
|
||||||
|
@ -67,6 +67,9 @@ dmap_add_char(struct evbuffer *evbuf, char *tag, char val);
|
|||||||
void
|
void
|
||||||
dmap_add_literal(struct evbuffer *evbuf, char *tag, char *str, int len);
|
dmap_add_literal(struct evbuffer *evbuf, char *tag, char *str, int len);
|
||||||
|
|
||||||
|
void
|
||||||
|
dmap_add_raw_uint32(struct evbuffer *evbuf, uint32_t val);
|
||||||
|
|
||||||
void
|
void
|
||||||
dmap_add_string(struct evbuffer *evbuf, char *tag, const char *str);
|
dmap_add_string(struct evbuffer *evbuf, char *tag, const char *str);
|
||||||
|
|
||||||
|
@ -1407,7 +1407,7 @@ daap_reply_playlists(struct evhttp_request *req, struct evbuffer *evbuf, char **
|
|||||||
|
|
||||||
dmap_add_field(playlist, df, *strval, 0);
|
dmap_add_field(playlist, df, *strval, 0);
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", df->desc, *strval);
|
DPRINTF(E_SPAM, L_DAAP, "Done with meta tag %s (%s)\n", df->desc, *strval);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Item count (mimc) */
|
/* Item count (mimc) */
|
||||||
|
Loading…
Reference in New Issue
Block a user