Commit 31becb00 authored by alex's avatar alex

print a hint when trying V4L2 on V4L device


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5065 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08c134f8
......@@ -122,6 +122,13 @@ static int device_open(const char *devname, uint32_t *capabilities)
}
res = ioctl(fd, VIDIOC_QUERYCAP, &cap);
// ENOIOCTLCMD definition only availble on __KERNEL__
if (res < 0 && errno == 515)
{
av_log(NULL, AV_LOG_ERROR, "QUERYCAP not implemented, probably V4L device but not supporting V4L2\n");
return -1;
}
if (res < 0) {
av_log(NULL, AV_LOG_ERROR, "ioctl(VIDIOC_QUERYCAP): %s\n",
strerror(errno));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment