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:
Julien BLACHE 2010-02-08 19:16:05 +01:00
parent cfabc9a456
commit 3df34fe9a8

View File

@ -1875,7 +1875,6 @@ daap_reply_groups(struct evhttp_request *req, struct evbuffer *evbuf, char **uri
int ngrp;
int oom;
int32_t val;
int64_t val64;
int i;
int ret;
char *tag;
@ -1991,24 +1990,6 @@ daap_reply_groups(struct evhttp_request *req, struct evbuffer *evbuf, char **uri
if (!(*strval) || (**strval == '\0'))
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);
DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", dfm->field->desc, *strval);