mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
v4l2: don't error when we finish the enumeration
This commit is contained in:
parent
25292e5078
commit
7a05a35f8e
1 changed files with 4 additions and 2 deletions
|
|
@ -584,9 +584,11 @@ spa_v4l2_enum_format(struct impl *this, int seq,
|
|||
port->fmtdesc.pixelformat = info->fourcc;
|
||||
} else {
|
||||
if ((res = xioctl(dev->fd, VIDIOC_ENUM_FMT, &port->fmtdesc)) < 0) {
|
||||
if (errno == EINVAL)
|
||||
goto enum_end;
|
||||
|
||||
res = -errno;
|
||||
if (errno != EINVAL)
|
||||
spa_log_error(this->log, "VIDIOC_ENUM_FMT: %m");
|
||||
spa_log_error(this->log, "VIDIOC_ENUM_FMT: %m");
|
||||
goto exit;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue