Commit 51fed80a authored by Julian Scheel's avatar Julian Scheel Committed by 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: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8bd0fc04
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment