mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-19 20:14:18 -04:00
Remove mper special case in daap_reply_groups()
mper was so far the only LONG we really cared about, but dmap_add_field() now has proper support all DMAP types. This special case can go.
This commit is contained in:
parent
cfabc9a456
commit
3df34fe9a8
@ -1875,7 +1875,6 @@ daap_reply_groups(struct evhttp_request *req, struct evbuffer *evbuf, char **uri
|
|||||||
int ngrp;
|
int ngrp;
|
||||||
int oom;
|
int oom;
|
||||||
int32_t val;
|
int32_t val;
|
||||||
int64_t val64;
|
|
||||||
int i;
|
int i;
|
||||||
int ret;
|
int ret;
|
||||||
char *tag;
|
char *tag;
|
||||||
@ -1991,24 +1990,6 @@ daap_reply_groups(struct evhttp_request *req, struct evbuffer *evbuf, char **uri
|
|||||||
if (!(*strval) || (**strval == '\0'))
|
if (!(*strval) || (**strval == '\0'))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Special handling for persistentid (mper)
|
|
||||||
* Correctly handle a DMAP long value (64bit)
|
|
||||||
*/
|
|
||||||
if (strcmp(dfm->field->tag, "mper") == 0)
|
|
||||||
{
|
|
||||||
if (*strval)
|
|
||||||
{
|
|
||||||
ret = safe_atoi64(*strval, &val64);
|
|
||||||
if (ret < 0)
|
|
||||||
val64 = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
dmap_add_long(group, dfm->field->tag, val64);
|
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_DAAP, "Done with LONG meta tag %s (%" PRIi64 ")\n", dfm->field->desc, val64);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
dmap_add_field(group, dfm->field, *strval, 0);
|
dmap_add_field(group, dfm->field, *strval, 0);
|
||||||
|
|
||||||
DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", dfm->field->desc, *strval);
|
DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", dfm->field->desc, *strval);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user