[vlc-devel] [PATCH] opengl: interop: remove i_chroma assignation

Alexandre Janniaux ajanni at videolabs.io
Thu Sep 10 12:54:57 CEST 2020


It should already be done by opengl_interop_init in case of success.
---
 modules/video_output/opengl/interop_sw.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/video_output/opengl/interop_sw.c b/modules/video_output/opengl/interop_sw.c
index 486b2b3f1d..9c36e09fcc 100644
--- a/modules/video_output/opengl/interop_sw.c
+++ b/modules/video_output/opengl/interop_sw.c
@@ -330,8 +330,6 @@ opengl_interop_generic_init(struct vlc_gl_interop *interop, bool allow_dr)
         ret = opengl_interop_init(interop, GL_TEXTURE_2D, *list, space);
         if (ret == VLC_SUCCESS)
         {
-            interop->fmt_out.i_chroma = *list;
-
             if (interop->fmt_out.i_chroma == VLC_CODEC_RGB32)
             {
 #if defined(WORDS_BIGENDIAN)
--
2.28.0


More information about the vlc-devel mailing list