v4l2: add some more debug

This commit is contained in:
Wim Taymans 2021-05-05 11:13:01 +02:00
parent ce89ce3844
commit 44f49a3ea0
2 changed files with 16 additions and 6 deletions

View file

@ -1374,8 +1374,11 @@ static int spa_v4l2_use_buffers(struct impl *this, struct spa_buffer **buffers,
else if (port->memtype == V4L2_MEMORY_DMABUF) {
b->v4l2_buffer.m.fd = d[0].fd;
}
else
else {
spa_log_error(this->log, "v4l2: invalid port memory %d",
port->memtype);
return -EIO;
}
spa_v4l2_buffer_recycle(this, i);
}
@ -1542,8 +1545,11 @@ spa_v4l2_alloc_buffers(struct impl *this,
} else if (dev->cap.capabilities & V4L2_CAP_READWRITE) {
if ((res = read_init(this)) < 0)
return res;
} else
} else {
spa_log_error(this->log, "v4l2: invalid capabilities %08x",
dev->cap.capabilities);
return -EIO;
}
return 0;
}