[vlc-devel] [PATCH 05/13] vout/opengl: use msg_Err for errors
Thomas Guillem
thomas at gllm.fr
Mon Dec 12 17:03:46 CET 2016
---
modules/video_output/opengl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/opengl.c b/modules/video_output/opengl.c
index a97fe4f..ff3ee7fb 100644
--- a/modules/video_output/opengl.c
+++ b/modules/video_output/opengl.c
@@ -459,7 +459,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
}
if (vgl->gl->getProcAddress == NULL) {
- fprintf(stderr, "getProcAddress not implemented, bailing out\n");
+ msg_Err(gl, "getProcAddress not implemented, bailing out\n");
free(vgl);
return NULL;
}
@@ -678,7 +678,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
int charsWritten;
vgl->GetShaderInfoLog(vgl->shader[j], infoLength, &charsWritten,
infolog);
- fprintf(stderr, "shader %d: %s\n", j, infolog);
+ msg_Err(gl, "shader %d: %s", j, infolog);
free(infolog);
}
}
@@ -707,7 +707,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
int charsWritten;
vgl->GetProgramInfoLog(vgl->program[i], infoLength, &charsWritten,
infolog);
- fprintf(stderr, "shader program %d: %s\n", i, infolog);
+ msg_Err(gl, "shader program %d: %s", i, infolog);
free(infolog);
}
@@ -715,7 +715,7 @@ vout_display_opengl_t *vout_display_opengl_New(video_format_t *fmt,
GLint link_status = GL_TRUE;
vgl->GetProgramiv(vgl->program[i], GL_LINK_STATUS, &link_status);
if (link_status == GL_FALSE) {
- fprintf(stderr, "Unable to use program %d\n", i);
+ msg_Err(gl, "Unable to use program %d\n", i);
vlc_gl_Unlock(vgl->gl);
vout_display_opengl_Delete(vgl);
return NULL;
--
2.10.2
More information about the vlc-devel
mailing list