[vlc-commits] vout/opengl: use msg_Err for errors
Thomas Guillem
git at videolan.org
Tue Dec 13 17:11:02 CET 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 8 14:37:15 2016 +0100| [1814f5ebc07c19c21d582d3264fc27ffd12b913e] | committer: Thomas Guillem
vout/opengl: use msg_Err for errors
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1814f5ebc07c19c21d582d3264fc27ffd12b913e
---
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 b98f969..258488b 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;
}
@@ -675,7 +675,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);
}
}
@@ -704,7 +704,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);
}
@@ -712,7 +712,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;
More information about the vlc-commits
mailing list