[vlc-devel] [PATCH 1/3] opengl: remove useless picture_Setup
Zhao Zhili
quinkblack at foxmail.com
Thu May 17 14:22:27 CEST 2018
The picture is setup by picture_NewFromResource already.
---
modules/video_output/opengl/converter_sw.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/modules/video_output/opengl/converter_sw.c b/modules/video_output/opengl/converter_sw.c
index d609468..6181f0f 100644
--- a/modules/video_output/opengl/converter_sw.c
+++ b/modules/video_output/opengl/converter_sw.c
@@ -139,11 +139,6 @@ pbo_picture_create(const opengl_tex_converter_t *tc, bool direct_rendering)
picsys->gl = tc->gl;
vlc_gl_Hold(picsys->gl);
}
- if (picture_Setup(pic, &tc->fmt))
- {
- picture_Release(pic);
- return NULL;
- }
assert(pic->i_planes > 0
&& (unsigned) pic->i_planes == tc->tex_count);
--
2.9.5
More information about the vlc-devel
mailing list