v4l2: don't error when we finish the enumeration

This commit is contained in:
Wim Taymans 2019-03-11 20:59:43 +01:00
parent 25292e5078
commit 7a05a35f8e

View file

@ -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;
}
}