gl: android: remove duplicate check and set b_locked flag
authorZhao Zhili <quinkblack@foxmail.com>
Thu, 17 May 2018 12:22:28 +0000 (20:22 +0800)
committerThomas Guillem <thomas@gllm.fr>
Fri, 18 May 2018 11:27:38 +0000 (13:27 +0200)
Make it as the same style as PoolUnlockOpaquePicture in android/display.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/video_output/opengl/converter_android.c

index c196c28..ad0265f 100644 (file)
@@ -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