mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-01 01:53:23 -05:00
[httpd_daap] Improve code clarity a bit
This commit is contained in:
parent
7b97503f04
commit
fdc9054890
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user