vaapi-recorder: Don't loop trying to write on out of space condition
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Fri, 9 May 2014 12:57:38 +0000 (15:57 +0300)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 9 May 2014 21:12:38 +0000 (14:12 -0700)
commit2d13fde9c7a37b78cd685e2f7469e312e14e0262
tree97d476801d02ab53b3629541ad1ba63d1909d62a
parent2d0f8b77eb1dd41d5690164853b380b55e6aeb84
vaapi-recorder: Don't loop trying to write on out of space condition

The error handling for the function that writes the encoded frame on
the disk was bogus, always assuming the buffer supplied to the encoder
was too small. That would cause a bigger buffer to be allocated and
another attempt to encode the frame was done. In the case of a failure
to write to disk (due to ENOSPC, for instance) that would cause an
endless loop.

Possibly-related-to: https://bugs.freedesktop.org/show_bug.cgi?id=69330
src/compositor-drm.c
src/vaapi-recorder.c
src/vaapi-recorder.h