mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
videoconvert: fix enum format for control and dsp ports
They just have 1 format object.
This commit is contained in:
parent
6161cb3ec5
commit
df2369f6e1
1 changed files with 2 additions and 0 deletions
|
|
@ -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)];
|
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);
|
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 (index == 0) {
|
||||||
if (port->is_dsp) {
|
if (port->is_dsp) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue