mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
convert: place the right id in the portconfig format
This commit is contained in:
parent
6712d9c3db
commit
218f25088c
2 changed files with 2 additions and 4 deletions
|
|
@ -530,8 +530,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, SPA_PARAM_PORT_CONFIG_format,
|
||||
&dir->format.info.raw);
|
||||
spa_format_audio_raw_build(b, id, &dir->format.info.raw);
|
||||
}
|
||||
*param = spa_pod_builder_pop(b, &f[0]);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -573,8 +573,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_video_build(b, SPA_PARAM_PORT_CONFIG_format,
|
||||
&dir->format);
|
||||
spa_format_video_build(b, id, &dir->format);
|
||||
}
|
||||
*param = spa_pod_builder_pop(b, &f[0]);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue