From df2369f6e1dfe1739e5bd97d06cbabf1ce04d471 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 May 2025 09:28:13 +0200 Subject: [PATCH] videoconvert: fix enum format for control and dsp ports They just have 1 format object. --- spa/plugins/videoconvert/videoconvert-ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/videoconvert/videoconvert-ffmpeg.c b/spa/plugins/videoconvert/videoconvert-ffmpeg.c index 3852ce187..994e74e03 100644 --- a/spa/plugins/videoconvert/videoconvert-ffmpeg.c +++ b/spa/plugins/videoconvert/videoconvert-ffmpeg.c @@ -1361,6 +1361,8 @@ static int port_param_enum_format(struct impl *this, struct port *port, uint32_t struct dir *other = &this->dir[SPA_DIRECTION_REVERSE(port->direction)]; spa_log_debug(this->log, "%p %d %d %d %d", port, port->valid, this->direction, port->direction, index); + if ((port->is_dsp || port->is_control) && index > 0) + return 0; if (index == 0) { if (port->is_dsp) {