Mercurial > mplayer.hg
comparison libvo/vo_svga.c @ 26172:6f6534bf7fbe
Handle vga_init() error and output error message.
author | iive |
---|---|
date | Sun, 09 Mar 2008 10:34:04 +0000 |
parents | 3aee342be929 |
children | 5b02db26105d |
comparison
equal
deleted
inserted
replaced
26171:0ea73bcbe34c | 26172:6f6534bf7fbe |
---|---|
115 return -1; | 115 return -1; |
116 } | 116 } |
117 | 117 |
118 static int preinit(const char *arg) | 118 static int preinit(const char *arg) |
119 { | 119 { |
120 int i; | 120 int i,rez; |
121 char s[64]; | 121 char s[64]; |
122 | 122 |
123 getch2_disable(); | 123 getch2_disable(); |
124 memset(zerobuf,0,sizeof(zerobuf)); | 124 memset(zerobuf,0,sizeof(zerobuf)); |
125 force_vm=force_native=squarepix=0; | 125 force_vm=force_native=squarepix=0; |
179 arg+=i; | 179 arg+=i; |
180 if(*arg==':')arg++; | 180 if(*arg==':')arg++; |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 vga_init(); | 184 rez = vga_init(); |
185 return 0; | 185 if(rez != 0){ |
186 mp_msg(MSGT_VO,MSGL_ERR, "vo_svga: vga_init() returned error=%d\n",rez); | |
187 } | |
188 return !!rez; | |
186 } | 189 } |
187 | 190 |
188 static void svga_clear_box(int x,int y,int w,int h){ | 191 static void svga_clear_box(int x,int y,int w,int h){ |
189 uint8_t * rgbplane; | 192 uint8_t * rgbplane; |
190 int i; | 193 int i; |