[vlc-devel] [PATCH 2/3] gl: android: remove duplicate check and set b_locked flag

Zhao Zhili quinkblack at foxmail.com
Thu May 17 14:22:28 CEST 2018


Make it has the same style as PoolUnlockOpaquePicture in
android/display.
---
 modules/video_output/opengl/converter_android.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/video_output/opengl/converter_android.c b/modules/video_output/opengl/converter_android.c
index c196c28..ad0265f 100644
--- a/modules/video_output/opengl/converter_android.c
+++ b/modules/video_output/opengl/converter_android.c
@@ -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
-- 
2.9.5





More information about the vlc-devel mailing list