Commit bd7d9e45 authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

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
parent 44b2784f
...@@ -324,7 +324,7 @@ static void mmap_release_buffer(AVPacket *pkt) ...@@ -324,7 +324,7 @@ static void mmap_release_buffer(AVPacket *pkt)
res = ioctl(fd, VIDIOC_QBUF, &buf); res = ioctl(fd, VIDIOC_QBUF, &buf);
if (res < 0) { 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->data = NULL;
pkt->size = 0; pkt->size = 0;
......
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