pulse-server: add device-restore extension

This is mostly to read and set the supported formats of a sink.
This commit is contained in:
Wim Taymans 2021-09-01 13:20:37 +02:00
parent a25396c1eb
commit 49eb31f670
4 changed files with 261 additions and 6 deletions

View file

@ -406,7 +406,7 @@ const char *format_encoding2name(enum encoding enc)
return encoding_names[enc].name;
return "INVALID";
}
static uint32_t format_encoding2id(enum encoding enc)
uint32_t format_encoding2id(enum encoding enc)
{
if (enc >= 0 && enc < (int)SPA_N_ELEMENTS(encoding_names) &&
encoding_names[enc].name != NULL)
@ -632,6 +632,7 @@ static int format_info_iec958_from_param(struct format_info *info, struct spa_po
default:
return -ENOTSUP;
}
if ((info->props = pw_properties_new(NULL, NULL)) == NULL)
return -errno;