[Ffmpeg-cvslog] CVS: ffmpeg/libavformat v4l2.c,1.1,1.2
Alex Beregszaszi
alex
Sun Feb 26 14:22:34 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv12523
Modified Files:
v4l2.c
Log Message:
print a hint when trying V4L2 on V4L device
Index: v4l2.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/v4l2.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- v4l2.c 1 Feb 2006 11:31:33 -0000 1.1
+++ v4l2.c 26 Feb 2006 13:22:32 -0000 1.2
@@ -122,6 +122,13 @@
}
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));
More information about the ffmpeg-cvslog
mailing list