summaryrefslogtreecommitdiffstats
path: root/libvo/vo_gl.c
diff options
context:
space:
mode:
authorattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-22 15:30:01 +0000
committerattila <attila@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-02-22 15:30:01 +0000
commitd592bf3e6a1b20061626cbb831f101e672aec1fb (patch)
tree3b741b57a84cdd67a983817f67d6227d0798f17b /libvo/vo_gl.c
parent08b0da4c33587bc931736f785e9b306225b67c67 (diff)
downloadmpv-d592bf3e6a1b20061626cbb831f101e672aec1fb.tar.bz2
mpv-d592bf3e6a1b20061626cbb831f101e672aec1fb.tar.xz
printf -> mp_msg
patch by Reimar Döffinger <Reimar.Doeffinger@stud.uni-karlsruhe.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11989 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_gl.c')
-rw-r--r--libvo/vo_gl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 0acf616991..f6c5443f03 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -6,6 +6,7 @@
#include <math.h>
#include <errno.h>
+#include "mp_msg.h"
#include "config.h"
#include "video_out.h"
#include "video_out_internal.h"
@@ -55,7 +56,7 @@ static uint32_t texture_height;
static int slice_height=1;
static void resize(int x,int y){
- printf("[gl] Resize: %dx%d\n",x,y);
+ mp_msg(MSGT_VO, MSGL_V, "[gl] Resize: %dx%d\n",x,y);
glViewport( 0, 0, x, y );
glMatrixMode(GL_PROJECTION);
@@ -113,7 +114,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
vinfo=glXChooseVisual( mDisplay,mScreen,wsGLXAttrib );
if (vinfo == NULL)
{
- printf("[gl] no GLX support present\n");
+ mp_msg(MSGT_VO, MSGL_ERR, "[gl] no GLX support present\n");
return -1;
}
@@ -176,7 +177,7 @@ config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uin
glEnable(GL_TEXTURE_2D);
- printf("[gl] Creating %dx%d texture...\n",texture_width,texture_height);
+ mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n",texture_width,texture_height);
#if 1
// glBindTexture(GL_TEXTURE_2D, texture_id);
@@ -302,7 +303,7 @@ static uint32_t preinit(const char *arg)
{
slice_height = 4;
}
- printf("[vo_gl] Using %d as slice_height (0 means image_height).\n", slice_height);
+ mp_msg(MSGT_VO, MSGL_INFO, "[vo_gl] Using %d as slice_height (0 means image_height).\n", slice_height);
if( !vo_init() ) return -1; // Can't open X11