mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08:00
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:
+6
-3
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user