[vlc-commits] gl: android: remove duplicate check and set b_locked flag
Zhao Zhili
git at videolan.org
Fri May 18 13:27:45 CEST 2018
vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu May 17 20:22:28 2018 +0800| [9e83c78fcdb037e3714496018e434d687e56ee4c] | committer: 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 <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e83c78fcdb037e3714496018e434d687e56ee4c
---
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 c196c2873b..ad0265f4b1 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
More information about the vlc-commits
mailing list