diff --git a/src/httpd_daap.c b/src/httpd_daap.c index 7b493650..5405f5a4 100644 --- a/src/httpd_daap.c +++ b/src/httpd_daap.c @@ -1210,6 +1210,8 @@ daap_reply_songlist_generic(struct evhttp_request *req, struct evbuffer *evbuf, continue; } + val = 0; + if (transcode) { switch (dfm->mfi_offset) @@ -1241,13 +1243,6 @@ daap_reply_songlist_generic(struct evhttp_request *req, struct evbuffer *evbuf, } } - if (*strval && (dfm->type != DMAP_TYPE_STRING)) - { - ret = safe_atoi32(*strval, &val); - if (ret < 0) - val = 0; - } - dmap_add_field(song, dfm, *strval, val); DPRINTF(E_DBG, L_DAAP, "Done with meta tag %s (%s)\n", dfm->desc, *strval);