[vlc-devel] [PATCH 06/14] mmal/deinterlace: Release picture if unable to process
Julian Scheel
julian at jusst.de
Wed Jun 3 09:50:31 CEST 2015
When an input picture can not be handled due to lack of resources we need to
free it to avoid a picture leak.
Signed-off-by: Julian Scheel <julian at jusst.de>
---
modules/hw/mmal/deinterlace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/hw/mmal/deinterlace.c b/modules/hw/mmal/deinterlace.c
index c8b6484..f54b9c8 100644
--- a/modules/hw/mmal/deinterlace.c
+++ b/modules/hw/mmal/deinterlace.c
@@ -452,6 +452,7 @@ static picture_t *deinterlace(filter_t *filter, picture_t *picture)
buffer = mmal_queue_timedwait(sys->input_pool->queue, 2);
if (!buffer) {
+ picture_Release(picture);
msg_Err(filter, "Failed to retrieve buffer header for input picture");
goto out;
}
--
2.4.0
More information about the vlc-devel
mailing list