[vlc-commits] mmal/deinterlace: Release picture if unable to process
Julian Scheel
git at videolan.org
Fri Jun 5 15:37:15 CEST 2015
vlc | branch: master | Julian Scheel <julian at jusst.de> | Wed Jun 3 09:50:31 2015 +0200| [51fed80a4cf63457dae27cf2cc37b84b88c235b8] | committer: Jean-Baptiste Kempf
mmal/deinterlace: Release picture if unable to process
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>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=51fed80a4cf63457dae27cf2cc37b84b88c235b8
---
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;
}
More information about the vlc-commits
mailing list