gstv4l2bufferpool: lock flush_stop against regular qbuf
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 28 Jul 2016 16:51:24 +0000 (18:51 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 24 Nov 2016 16:47:07 +0000 (11:47 -0500)
commit86f243bb12fd41778555ab83db53ba403e225d41
tree9daaf1889fb97b27908a044223c0f4699198fb98
parent6b5807654b3b9eca69f59261009c1e47d83ef483
gstv4l2bufferpool: lock flush_stop against regular qbuf

These can be called from different threads and both manipulate the
pool->buffers array. Lock them properly and let flush_stop move the
array contents into a temporary array on the stack to avoid having
to call release_buffer under the object lock.

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