vlc | branch: master | Julian Scheel <[email protected]> | 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 <[email protected]> Signed-off-by: Jean-Baptiste Kempf <[email protected]> > 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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
