omxbufferpool: return buffers to the pool instead of freeing them
authorJosep Torra <n770galaxy@gmail.com>
Mon, 24 Mar 2014 16:49:59 +0000 (17:49 +0100)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Mon, 24 Mar 2014 18:20:51 +0000 (18:20 +0000)
commit100e9f998d6f986838f9e27be1ef1d511a9638e3
treecc82bfa1c001f3da2966c998dfef96af2d7b805d
parent651e67e32dc309968ecd7ec15c9f30ba90d9897c
omxbufferpool: return buffers to the pool instead of freeing them

We have to return the buffers back to the pool in when stopping to
not mess with the GstBufferPool accounting.
The OMX buffers will be freed when those won't be in charge of the
pool in the chained up call to 'stop'.
Fixes segfaults on finalize and pool not being properly deactivated.

https://bugzilla.gnome.org/show_bug.cgi?id=726337
omx/gstomxbufferpool.c