[httpd_daap] Improve code clarity a bit

This commit is contained in:
ejurgensen 2017-10-29 10:09:53 +01:00
parent 7b97503f04
commit fdc9054890

View File

@ -599,6 +599,9 @@ user_agent_filter(struct query_params *qp, struct daap_request *dreq)
{ {
char *filter; char *filter;
if (!(qp->type == Q_ITEMS || (qp->type & Q_F_BROWSE)))
return;
if (dreq->is_remote) if (dreq->is_remote)
{ {
if (qp->filter) if (qp->filter)
@ -727,8 +730,8 @@ query_params_set(struct query_params *qp, int *sort_headers, struct daap_request
} }
qp->type = type; qp->type = type;
if (type == Q_ITEMS || (type & Q_F_BROWSE))
user_agent_filter(qp, dreq); user_agent_filter(qp, dreq);
} }
static int static int