diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-04 18:18:01 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-04 18:18:01 +0000 |
commit | bd7d9e45a44480da09e956b55e93f455cf1ed26c (patch) | |
tree | ffe40fb6095ea3819269dca7fe1435942591aebb /libavdevice/v4l2.c | |
parent | 44b2784fb43e8bb126616472a6b3cd841406e7b9 (diff) | |
download | ffmpeg-bd7d9e45a44480da09e956b55e93f455cf1ed26c.tar.gz |
In the video4linux2 output device, log an error description in case of
ioctl failure in mmap_release_buffer().
Originally committed as revision 26214 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r-- | libavdevice/v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 035e41633d..54259284af 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -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; |