[MPlayer-cvslog] r26204 - trunk/libvo/vo_svga.c

iive subversion at mplayerhq.hu
Sun Mar 9 11:34:05 CET 2008


Author: iive
Date: Sun Mar  9 11:34:04 2008
New Revision: 26204

Log:
Handle vga_init() error and output error message.


Modified:
   trunk/libvo/vo_svga.c

Modified: trunk/libvo/vo_svga.c
==============================================================================
--- trunk/libvo/vo_svga.c	(original)
+++ trunk/libvo/vo_svga.c	Sun Mar  9 11:34:04 2008
@@ -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){



More information about the MPlayer-cvslog mailing list