v4l2: bufferpool: don't forget to release buffer on error
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 5 Jul 2013 09:51:04 +0000 (11:51 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 8 Jul 2013 14:27:19 +0000 (16:27 +0200)
commit07e4dd3424459c05a6711df93a3a169b7822ce48
tree6588bbb44b9844b06bd4acf0e8e4b202291823d4
parent1a11a9be0caabce1f53948004d1b02168590b464
v4l2: bufferpool: don't forget to release buffer on error

If the pool is stopped while gst_v4l2_buffer_pool_dqbuf() waits for a
buffer then the return value is GST_FLOW_FLUSHING. In this case the buffer
to queue must also be released. Otherwise is will never be deleted or
returned to its pool.

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