From 218f25088caa24b8d82103041a9e18943daeb96c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 14 May 2025 18:21:02 +0200 Subject: [PATCH] convert: place the right id in the portconfig format --- spa/plugins/audioconvert/audioconvert.c | 3 +-- spa/plugins/videoconvert/videoconvert-ffmpeg.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 75f6f01b7..f30de33ae 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -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; diff --git a/spa/plugins/videoconvert/videoconvert-ffmpeg.c b/spa/plugins/videoconvert/videoconvert-ffmpeg.c index fa4e63849..889117820 100644 --- a/spa/plugins/videoconvert/videoconvert-ffmpeg.c +++ b/spa/plugins/videoconvert/videoconvert-ffmpeg.c @@ -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;