From 78417bf0ddb3e5711e6cc22ed98ed095286a0ece Mon Sep 17 00:00:00 2001 From: reynaldo Date: Mon, 24 Apr 2006 04:23:53 +0000 Subject: Part 5 and final of otvos attila's oattila AT chello-hu mp_msg changes, with lots of corrections git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18235 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_syncfb.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'libvo/vo_syncfb.c') diff --git a/libvo/vo_syncfb.c b/libvo/vo_syncfb.c index 2892ffb598..c36933560d 100644 --- a/libvo/vo_syncfb.c +++ b/libvo/vo_syncfb.c @@ -31,6 +31,8 @@ #include #include "config.h" +#include "mp_msg.h" +#include "help_mp.h" #include "video_out.h" #include "video_out_internal.h" @@ -286,7 +288,7 @@ flip_page(void) if ( dbg_singleframe ) { if ( debug_skip_first == 0 ) { - printf( "Press 'anykey' for field 1\n" ); + mp_msg(MSGT_VO,MSGL_INFO, "Press 'anykey' for field 1\n" ); getchar(); ioctl(f,SYNCFB_VBI,0); } @@ -302,14 +304,14 @@ flip_page(void) } if ( debug_skip_first == 0 ) { - printf( "Press 'anykey' for field 2\n" ); + mp_msg(MSGT_VO,MSGL_INFO, "Press 'anykey' for field 2\n" ); getchar(); ioctl(f,SYNCFB_VBI,0); } } ioctl(f,SYNCFB_REQUEST_BUFFER,&bufinfo); - if ( bufinfo.id == -1 ) printf( "Got buffer #%d\n", bufinfo.id ); + if ( bufinfo.id == -1 ) mp_msg(MSGT_VO,MSGL_INFO, "Got buffer #%d\n", bufinfo.id ); vid_data = (uint_8 *)(frame_mem + bufinfo.offset); if ( bufinfo.id == -1 ) { @@ -322,7 +324,7 @@ flip_page(void) static int draw_frame(uint8_t *src[]) { - printf("DRAW FRAME!!!\n"); + mp_msg(MSGT_VO,MSGL_INFO, "DRAW FRAME!!!\n"); if ( conf_palette == VIDEO_PALETTE_YUV422 ) { write_frame_YUV422(src[0],src[1], src[2]); } else if ( conf_palette == VIDEO_PALETTE_YUV420P2 ) { @@ -358,7 +360,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_ f = open("/dev/mga_vid",O_RDWR); if(f == -1) { - printf("Couldn't open /dev/syncfb or /dev/mga_vid\n"); + mp_msg(MSGT_VO,MSGL_ERR, MSGTR_LIBVO_SYNCFB_CouldntOpen); return(-1); } } @@ -368,15 +370,15 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_ if (sfb_caps.palettes & (1<