opengl: converter_cvpx: don't handle color space
authorVictorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com>
Thu, 27 Jul 2017 10:06:34 +0000 (12:06 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 27 Jul 2017 17:13:53 +0000 (19:13 +0200)
VideoToolbox already handles it.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/video_output/opengl/converter_cvpx.c

index 7864d3f..e388551 100644 (file)
@@ -196,7 +196,7 @@ opengl_tex_converter_cvpx_init(opengl_tex_converter_t *tc)
         case VLC_CODEC_CVPX_UYVY:
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_UYVY,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             tc->texs[0].internal = GL_RGB;
             tc->texs[0].format = GL_RGB_422_APPLE;
             tc->texs[0].type = GL_UNSIGNED_SHORT_8_8_APPLE;
@@ -205,13 +205,13 @@ opengl_tex_converter_cvpx_init(opengl_tex_converter_t *tc)
         {
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_NV12,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             break;
         }
         case VLC_CODEC_CVPX_I420:
             fragment_shader =
                 opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_I420,
-                                            tc->fmt.space);
+                                            COLOR_SPACE_UNDEF);
             break;
         case VLC_CODEC_CVPX_BGRA:
             fragment_shader =