v4l2object: Update image size when extrapolating
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 3 Jan 2017 00:29:04 +0000 (19:29 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 22 Feb 2017 08:53:30 +0000 (03:53 -0500)
commit0b83e4ceaf7d9a5cc655ff96bd288b61ef106347
tree8315e94b86b4e414ffac7598826be8a42a2c49e9
parentb460f18f1724431229c7ecb98737e9fc3fa7e4c9
v4l2object: Update image size when extrapolating

Update the image size according the amount of data we are going to
read/write. This workaround bugs in driver where the sizeimage provided
by TRY/S_FMT represent the buffer length (maximum size) rather then the expected
bytesused (buffer size).

https://bugzilla.gnome.org/show_bug.cgi?id=775564
sys/v4l2/gstv4l2object.c