try free keep video when allocation fail [2/2]

PD#167377

try free keep video when allocation fail

Change-Id: I8c9b8bf412a6f6c26b6443c15f6a27019f08890e
This commit is contained in:
rongrong zhou
2018-06-29 12:05:12 +08:00
committed by Dongjin Kim
parent 76c4043ce9
commit 69d9c4ed74

View File

@@ -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;