v4l2bufferpool: Only queue buffer if preparation worked
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 24 Jul 2018 16:07:22 +0000 (12:07 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 27 Aug 2018 17:41:30 +0000 (13:41 -0400)
commit77c052f0e89a622fa0ea723f3d477befb3817469
tree7da855b82ca67e6dc46460916c80d835a9203b08
parent24368c11626cd8f53f7cfea67faa98eaa3907a43
v4l2bufferpool: Only queue buffer if preparation worked

The preparation code imports the buffer, doing bunch of
validation. Only queue the buffer in the driver if the
importation worked. This way we don't rely on the driver
to validate.

https://bugzilla.gnome.org/show_bug.cgi?id=583890
sys/v4l2/gstv4l2bufferpool.c