avcodec: v4l2_m2m: context: fix raising warning on POLLERR
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Tue, 9 Jan 2018 22:56:43 +0000 (23:56 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 21 Jan 2018 00:37:35 +0000 (00:37 +0000)
commit0b9b7f0b46a80b848b19ebbb624cc7dc06bd33b7
tree72971c5dcb680293b66f6370ebe2ee2741c2ec83
parent5d5de3eba4c7890c2e8077f5b4ae569671d11cf8
avcodec: v4l2_m2m: context: fix raising warning on POLLERR

During the initialization stage, the codec attempts to get free
buffers from the driver before any have been queued (this is to keep
the code simple and generic)

When the kernel driver detects this situation, it returns POLLERR in
revents and ffmpeg therefore raises a warning.

This commit disables the warning since no buffers were queued to the
driver yet.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
libavcodec/v4l2_context.c