mirror of https://github.com/mpv-player/mpv
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:
parent
ef5a881b07
commit
ea92f386c6
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue