v4l2sink: fix race when reallocating the buffer pool
authorAlessandro Decina <alessandro.decina@collabora.co.uk>
Fri, 2 Mar 2012 13:02:51 +0000 (14:02 +0100)
committerAlessandro Decina <alessandro.decina@collabora.co.uk>
Fri, 2 Mar 2012 13:02:51 +0000 (14:02 +0100)
commitc3094529360f751ac87e1e03e7b12e8ca09691c8
tree401dd1a11731b8a839f8516aa44d2f1ee7a73171
parent969b2641f984872f19fa04e6b9b41b06e88e17da
v4l2sink: fix race when reallocating the buffer pool

Fix a race between buffer_alloc and show_frame when a buffer is being displayed
in show_frame and upstream triggers a pool reallocation with buffer_alloc.
sys/v4l2/gstv4l2sink.c