v4l2bufferpool: Acquire cannot return a buffer from another pool
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 29 Apr 2014 17:05:41 +0000 (13:05 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 May 2014 19:56:37 +0000 (15:56 -0400)
commit815c9b7d35d4205aa9da5fb8697502c7ad7fdc5f
tree893dabd0d2908c9b03998c12372ac35bd763f630
parent97d0ca853e0b63c7779ab61630abfe907af8bd89
v4l2bufferpool: Acquire cannot return a buffer from another pool

Return a buffer from an otherpool has unwanted side effects that lead to leaks and
prevents deactivating the pool. Instead, we change the _process() API so it can
replace the internal buffer with the buffer from the downstream pool. This implied
moving from _fill() to _create() method in the src.
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h
sys/v4l2/gstv4l2sink.c
sys/v4l2/gstv4l2src.c
sys/v4l2/gstv4l2videodec.c