mmal/deinterlace: Do not filter the same picture twice
commitc92f24312c5674c9a32185da417ae5bdbf426276
authorJulian Scheel <julian@jusst.de>
Wed, 3 Jun 2015 07:50:36 +0000 (3 09:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 5 Jun 2015 13:35:03 +0000 (5 15:35 +0200)
treebfd70be7ea91d99aeb7c8692f67f83b14602daee
parent974e13d7b3c99bb2c05c95ce43706e4a11905a52
mmal/deinterlace: Do not filter the same picture twice

If the same picture, containing the same buffer header without being
re-acquired in the meantime, is sent to image_fx twice it will portentially
cause a double free within the mmal core as it destroys the internal
refcounting. Use the same guarding mechanism which is already in place in
mmal/vout to ensure this is not happening at any point.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/hw/mmal/deinterlace.c