v4l2: make sure the element is not deleted before the pool
authorMichael Olbrich <m.olbrich@pengutronix.de>
Wed, 5 Jun 2013 14:32:30 +0000 (16:32 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 7 Jun 2013 18:07:42 +0000 (20:07 +0200)
commita1c34b540735a7a23b15cdb77ecba1b28adb93ee
tree8f8553354fbbbf94d1791100c82d6053ffd927e5
parentbae53878e69a6caee405b10a139eb374e7f70ff3
v4l2: make sure the element is not deleted before the pool

The pool accesses data from the v4l2object so it must exist at least
as long as the pool. Refcount the element which controls the object
live-time.

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