Handle vga_init() error and output error message.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26204 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2008-03-09 10:34:04 +00:00
parent ef5a881b07
commit ea92f386c6
1 changed files with 6 additions and 3 deletions

View File

@ -117,7 +117,7 @@ int i;
static int preinit(const char *arg)
{
int i;
int i,rez;
char s[64];
getch2_disable();
@ -181,8 +181,11 @@ char s[64];
}
}
vga_init();
return 0;
rez = vga_init();
if(rez != 0){
mp_msg(MSGT_VO,MSGL_ERR, "vo_svga: vga_init() returned error=%d\n",rez);
}
return !!rez;
}
static void svga_clear_box(int x,int y,int w,int h){