In the video4linux2 output device, log an error description in case of
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 4 Jan 2011 18:18:01 +0000 (18:18 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 4 Jan 2011 18:18:01 +0000 (18:18 +0000)
ioctl failure in mmap_release_buffer().

Originally committed as revision 26214 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavdevice/v4l2.c

index 035e416..5425928 100644 (file)
@@ -324,7 +324,7 @@ static void mmap_release_buffer(AVPacket *pkt)
 
     res = ioctl(fd, VIDIOC_QBUF, &buf);
     if (res < 0) {
-        av_log(NULL, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF)\n");
+        av_log(NULL, AV_LOG_ERROR, "ioctl(VIDIOC_QBUF): %s\n", strerror(errno));
     }
     pkt->data = NULL;
     pkt->size = 0;