• Andriy Gelman's avatar
    avcodec/v4l2_context: Log warning when all capture buffers are in userspace · 2a9d6235
    Andriy Gelman authored
    v4l2_m2m uses device memory mapped buffers to store dequeued
    frames/packets (reference counted by AVBufferRef). When the reference
    count drops to zero, the buffer ownership is returned back to the
    device, so that they can re-filled with frames/packets.
    
    There are some cases when all the capture buffers are in userspace
    (i.e. due to internal buffering in ffmpeg). On the s5p-mfc this causes
    an infinite wait when polling to dequeue the buffers, which can be
    prevented by increasing the total number of buffers. This commit adds a
    warning when all the capture buffers are dequeued.
    Reviewed-by: 's avatarMing Qian <ming.qian@nxp.com>
    Signed-off-by: 's avatarAndriy Gelman <andriy.gelman@gmail.com>
    2a9d6235
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...