convert: place the right id in the portconfig format

This commit is contained in:
Wim Taymans 2025-05-14 18:21:02 +02:00
parent 6712d9c3db
commit 218f25088c
2 changed files with 2 additions and 4 deletions

View file

@ -530,8 +530,7 @@ static int node_param_port_config(struct impl *this, uint32_t id, uint32_t index
if (dir->have_format) { if (dir->have_format) {
spa_pod_builder_prop(b, SPA_PARAM_PORT_CONFIG_format, 0); spa_pod_builder_prop(b, SPA_PARAM_PORT_CONFIG_format, 0);
spa_format_audio_raw_build(b, SPA_PARAM_PORT_CONFIG_format, spa_format_audio_raw_build(b, id, &dir->format.info.raw);
&dir->format.info.raw);
} }
*param = spa_pod_builder_pop(b, &f[0]); *param = spa_pod_builder_pop(b, &f[0]);
break; break;

View file

@ -573,8 +573,7 @@ static int node_param_port_config(struct impl *this, uint32_t id, uint32_t index
if (dir->have_format) { if (dir->have_format) {
spa_pod_builder_prop(b, SPA_PARAM_PORT_CONFIG_format, 0); spa_pod_builder_prop(b, SPA_PARAM_PORT_CONFIG_format, 0);
spa_format_video_build(b, SPA_PARAM_PORT_CONFIG_format, spa_format_video_build(b, id, &dir->format);
&dir->format);
} }
*param = spa_pod_builder_pop(b, &f[0]); *param = spa_pod_builder_pop(b, &f[0]);
return 1; return 1;