profile: try to keep the default htsp profile even when not set in ACL

This commit is contained in:
Jaroslav Kysela 2014-11-02 16:21:42 +01:00
parent 723a7ed168
commit fa48fe7c87

View file

@ -364,7 +364,7 @@ profile_find_by_list(htsmsg_t *uuids, const char *name, const char *alt)
res = pro;
}
if (!res)
res = profile_find_by_name(NULL, NULL);
res = profile_find_by_name(!strcmp(alt, "htsp") ? "htsp" : NULL, NULL);
return res;
}