Commit 9e83c78f authored by Zhao Zhili's avatar Zhao Zhili Committed by Thomas Guillem

gl: android: remove duplicate check and set b_locked flag

Make it as the same style as PoolUnlockOpaquePicture in android/display.
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent b7b01997
......@@ -55,11 +55,8 @@ static void
pool_unlock_pic(picture_t *p_pic)
{
picture_sys_t *p_picsys = p_pic->p_sys;
if (p_picsys->b_locked)
{
AndroidOpaquePicture_Release(p_picsys, false);
p_picsys->b_locked = false;
}
AndroidOpaquePicture_Release(p_picsys, false);
}
static int
......
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