Make the VIDIOCMCAPTURE ioctl error message consistent with the other ones.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 27 Dec 2008 11:44:56 +0000 (11:44 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 27 Dec 2008 11:44:56 +0000 (11:44 +0000)
Originally committed as revision 16361 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/v4l.c

index af9f0a47138493a21ba27b603255f35a13d3ddd3..39844a913cf8867cfa8b73470deef7097e86bab3 100644 (file)
@@ -217,7 +217,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
         if (ioctl(video_fd, VIDIOCMCAPTURE, &s->gb_buf) < 0) {
             if (errno != EAGAIN) {
             fail1:
-                av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not support suitable format\n");
+                av_log(s1, AV_LOG_ERROR, "VIDIOCMCAPTURE: %s\n", strerror(errno));
             } else {
                 av_log(s1, AV_LOG_ERROR, "Fatal: grab device does not receive any video signal\n");
             }