From 69d9c4ed74ae4cde48b4137155281a0b5835255c Mon Sep 17 00:00:00 2001 From: rongrong zhou Date: Fri, 29 Jun 2018 12:05:12 +0800 Subject: [PATCH] try free keep video when allocation fail [2/2] PD#167377 try free keep video when allocation fail Change-Id: I8c9b8bf412a6f6c26b6443c15f6a27019f08890e --- .../frame_provider/decoder/utils/decoder_bmmu_box.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/amlogic/media_modules/frame_provider/decoder/utils/decoder_bmmu_box.c b/drivers/amlogic/media_modules/frame_provider/decoder/utils/decoder_bmmu_box.c index 72338cf1e2b7..fe00832b061c 100644 --- a/drivers/amlogic/media_modules/frame_provider/decoder/utils/decoder_bmmu_box.c +++ b/drivers/amlogic/media_modules/frame_provider/decoder/utils/decoder_bmmu_box.c @@ -299,6 +299,7 @@ int decoder_bmmu_box_alloc_idx_wait( ret = decoder_bmmu_box_alloc_idx(handle, idx, size, aligned_2n, mem_flags); } else { + try_free_keep_video(1); ret = -ENOMEM; } return ret;