Mercurial > mplayer.hg
diff libvo/vo_aa.c @ 16171:fd51fd1ff231
Fix the return types of all (six) libvo API functions. Used to be uint32_t, but
return values can be negative (VO_ERROR, VO_NOTAVAIL and VO_NOTIMPL), so it's
changed to int now.
author | ivo |
---|---|
date | Fri, 05 Aug 2005 01:24:37 +0000 |
parents | 05aa13cdf92f |
children | f580a7755ac5 |
line wrap: on
line diff
--- a/libvo/vo_aa.c Mon Aug 01 23:43:40 2005 +0000 +++ b/libvo/vo_aa.c Fri Aug 05 01:24:37 2005 +0000 @@ -227,7 +227,7 @@ osdpercent(1,1,0,255,vo_osd_progbar_value, __sub_osd_names[vo_osd_progbar_type], ""); } } -static uint32_t +static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format) { @@ -314,7 +314,7 @@ return 0; } -static uint32_t +static int query_format(uint32_t format) { /* * ...are we able to... ? @@ -343,7 +343,7 @@ return 0; } -static uint32_t +static int draw_frame(uint8_t *src[]) { int stride[3] = { 0 , 0 , 0 }; @@ -372,7 +372,7 @@ return 0; } -static uint32_t +static int draw_slice(uint8_t *src[], int stride[], int w, int h, int x, int y) { @@ -679,7 +679,7 @@ return retval; } -static uint32_t preinit(const char *arg) +static int preinit(const char *arg) { char * hidis = NULL; struct stat sbuf; @@ -744,7 +744,7 @@ return 0; } -static uint32_t control(uint32_t request, void *data, ...) +static int control(uint32_t request, void *data, ...) { switch (request) { case VOCTRL_QUERY_FORMAT: