[vlc-commits] opengl: interop: remove i_chroma assignation

Alexandre Janniaux git at videolan.org
Mon Sep 14 23:05:48 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Sep 10 12:54:57 2020 +0200| [d2a6d3f2776ec9bb710376e35ad2acd74d49096c] | committer: Alexandre Janniaux

opengl: interop: remove i_chroma assignation

It should already be done by opengl_interop_init in case of success.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2a6d3f2776ec9bb710376e35ad2acd74d49096c
---

 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)



More information about the vlc-commits mailing list