mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Improve enum_param
Add an argument to pass the result param to the caller instead of having the caller have to pick it up from the builder. Improve docs for node, clock and monitor Pass spa_pod everywhere instead of spa_pod_object. Pass result argument to spa_pod_filter to make things a little nicer.
This commit is contained in:
parent
cd5e697e9f
commit
440f681f4b
70 changed files with 872 additions and 858 deletions
|
|
@ -51,12 +51,10 @@ spa_type_format_audio_map(struct spa_type_map *map, struct spa_type_format_audio
|
|||
}
|
||||
|
||||
static inline int
|
||||
spa_format_audio_raw_parse(const struct spa_pod_object *format,
|
||||
spa_format_audio_raw_parse(const struct spa_pod *format,
|
||||
struct spa_audio_info_raw *info, struct spa_type_format_audio *type)
|
||||
{
|
||||
struct spa_pod_parser prs;
|
||||
spa_pod_parser_pod(&prs, &format->pod);
|
||||
return spa_pod_parser_get(&prs,
|
||||
return spa_pod_object_parse(format,
|
||||
":",type->format, "I", &info->format,
|
||||
":",type->rate, "i", &info->rate,
|
||||
":",type->channels, "i", &info->channels,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue