[vlc-commits] opengl: fix return value on error

Romain Vimont git at videolan.org
Thu Dec 5 10:22:50 CET 2019


vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Mon Dec  2 16:22:44 2019 +0100| [7f73e58eda97e29b915b07545cc8d278bbd215c2] | committer: Thomas Guillem

opengl: fix return value on error

opengl_fragment_shader_init_impl() returns a fragment shader object (a
GLuint), not a VLC status code.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_output/opengl/fragment_shaders.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
index 9294ab6283..9694b52d63 100644
--- a/modules/video_output/opengl/fragment_shaders.c
+++ b/modules/video_output/opengl/fragment_shaders.c
@@ -507,7 +507,7 @@ opengl_fragment_shader_init_impl(opengl_tex_converter_t *tc, GLenum tex_target,
 
     const vlc_chroma_description_t *desc = vlc_fourcc_GetChromaDescription(chroma);
     if (desc == NULL)
-        return VLC_EGENERIC;
+        return 0;
 
     if (chroma == VLC_CODEC_XYZ12)
         return xyz12_shader_init(tc);



More information about the vlc-commits mailing list