diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-03-09 10:34:04 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-03-09 10:34:04 +0000 |
commit | ea92f386c6c74ec5011faeed64be5e04f930d359 (patch) | |
tree | dd682f1425dce57aceb1adeeb00250e5f6f7f366 /libvo | |
parent | ef5a881b07a3aff5a84793f236fa7023941c3d9d (diff) | |
download | mpv-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.c | 9 |
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){ |