videoconvert: fix enum format for control and dsp ports

They just have 1 format object.
This commit is contained in:
Wim Taymans 2025-05-06 09:28:13 +02:00
parent 6161cb3ec5
commit df2369f6e1

View file

@ -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) {