mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-06-13 14:33:03 -04:00
port-config: add internalFormat to PortConfig
Use the Format for all possible formats on the EnumPortConfig and the configured external format on PortConfig. Make a new internalFormat that contains the configured format of the adapter follower. Make pw-top use the PortConfig internalFormat in the FORMAT view and fall back to Format, when not available (for older clients).
This commit is contained in:
parent
d780f4f535
commit
b5555cc3f6
5 changed files with 23 additions and 10 deletions
|
|
@ -558,7 +558,7 @@ static int node_param_port_config(struct impl *this, uint32_t id, uint32_t index
|
|||
}
|
||||
if (dir->have_format) {
|
||||
spa_pod_builder_prop(b, SPA_PARAM_PORT_CONFIG_format, 0);
|
||||
spa_format_audio_raw_build(b, id, &dir->format.info.raw);
|
||||
spa_format_audio_build(b, id, &dir->format);
|
||||
}
|
||||
*param = spa_pod_builder_pop(b, &f[0]);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue