media-session: remove unused props from struct profile

This commit is contained in:
Konstantin Kharlamov 2021-08-31 00:37:21 +03:00 committed by Wim Taymans
parent d34c4facc0
commit e7db65b133

View file

@ -432,8 +432,6 @@ static int restore_route_params(struct device *dev, const char *val, const struc
struct profile { struct profile {
uint32_t index; uint32_t index;
const char *name; const char *name;
uint32_t prio;
uint32_t available;
struct spa_pod *classes; struct spa_pod *classes;
}; };
@ -445,8 +443,6 @@ static int parse_profile(const struct sm_param *p, struct profile *pr)
SPA_TYPE_OBJECT_ParamProfile, NULL, SPA_TYPE_OBJECT_ParamProfile, NULL,
SPA_PARAM_PROFILE_index, SPA_POD_Int(&pr->index), SPA_PARAM_PROFILE_index, SPA_POD_Int(&pr->index),
SPA_PARAM_PROFILE_name, SPA_POD_String(&pr->name), SPA_PARAM_PROFILE_name, SPA_POD_String(&pr->name),
SPA_PARAM_PROFILE_priority, SPA_POD_OPT_Int(&pr->prio),
SPA_PARAM_PROFILE_available, SPA_POD_OPT_Id(&pr->available),
SPA_PARAM_PROFILE_classes, SPA_POD_OPT_Pod(&pr->classes))) < 0) SPA_PARAM_PROFILE_classes, SPA_POD_OPT_Pod(&pr->classes))) < 0)
return res; return res;
return 0; return 0;