bluez5: Set profile priority in SPA attributes

This commit is contained in:
Sanchayan Maity 2021-12-30 18:15:32 +05:30
parent 2f742bb56c
commit 81fac5b896

View file

@ -1233,6 +1233,7 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
SPA_PARAM_PROFILE_name, SPA_POD_String(name),
SPA_PARAM_PROFILE_description, SPA_POD_String(desc),
SPA_PARAM_PROFILE_available, SPA_POD_Id(SPA_PARAM_AVAILABILITY_yes),
SPA_PARAM_PROFILE_priority, SPA_POD_Int(codec),
0);
if (n_source > 0 || n_sink > 0) {
spa_pod_builder_prop(b, SPA_PARAM_PROFILE_classes, 0);