v4l2bufferpool: Fix copy threshold implementation
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 11 Jul 2014 17:35:10 +0000 (13:35 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 11 Jul 2014 17:45:30 +0000 (13:45 -0400)
commitd7876e55970be79854988133c5d44ff40f962a8b
treedf7226d69730188fd80483c33f37fbf4d381aa9f
parentbf96c9c545dcda86377e6a5db278b23ba4d6ab94
v4l2bufferpool: Fix copy threshold implementation

We cannot allocate new buffer in acquire, otherwise the base class
is not aware and get confused. Instead, copy in _process(). This leads
to crash on finalize.

Fixes regression, see https://bugzilla.gnome.org/show_bug.cgi?id=732912
sys/v4l2/gstv4l2bufferpool.c