summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-09 10:34:04 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-09 10:34:04 +0000
commitea92f386c6c74ec5011faeed64be5e04f930d359 (patch)
treedd682f1425dce57aceb1adeeb00250e5f6f7f366 /libvo
parentef5a881b07a3aff5a84793f236fa7023941c3d9d (diff)
downloadmpv-ea92f386c6c74ec5011faeed64be5e04f930d359.tar.bz2
mpv-ea92f386c6c74ec5011faeed64be5e04f930d359.tar.xz
Handle vga_init() error and output error message.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26204 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_svga.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libvo/vo_svga.c b/libvo/vo_svga.c
index d8f8e393b5..86df078360 100644
--- a/libvo/vo_svga.c
+++ b/libvo/vo_svga.c
@@ -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){