[vlc-commits] opengl: cvpx: fix return values on error

Thomas Guillem git at videolan.org
Wed Feb 15 10:46:36 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Feb 15 10:03:01 2017 +0100| [68f46ade5283dba1505393f645b9f8c530ff4fb7] | committer: Thomas Guillem

opengl: cvpx: fix return values on error

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

 modules/video_output/opengl/converter_cvpx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/converter_cvpx.c b/modules/video_output/opengl/converter_cvpx.c
index 22e9493..75f2124 100644
--- a/modules/video_output/opengl/converter_cvpx.c
+++ b/modules/video_output/opengl/converter_cvpx.c
@@ -162,11 +162,11 @@ opengl_tex_converter_cvpx_init(const video_format_t *fmt,
      && fmt->i_chroma != VLC_CODEC_CVPX_NV12
      && fmt->i_chroma != VLC_CODEC_CVPX_I420
      && fmt->i_chroma != VLC_CODEC_CVPX_BGRA)
-        return VLC_EGENERIC;
+        return 0;
 
     struct priv *priv = calloc(1, sizeof(struct priv));
     if (unlikely(priv == NULL))
-        return VLC_ENOMEM;
+        return 0;
 
     GLenum tex_target = GL_TEXTURE_RECTANGLE;
 



More information about the vlc-commits mailing list