diff options
author | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 01:24:37 +0000 |
---|---|---|
committer | ivo <ivo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-05 01:24:37 +0000 |
commit | cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00 (patch) | |
tree | dc84e22e112201b3911edd0a1b6ddac9b2012f59 /libvo/mga_common.c | |
parent | 205db1107439080dcd0915e862ae15b3289f400d (diff) | |
download | mpv-cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00.tar.bz2 mpv-cd55954e4e8cfe7c5653fc9df1d6ecdf2533dd00.tar.xz |
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.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16172 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 1189e6a8f7..52b6e2c340 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -102,7 +102,7 @@ draw_slice_g400(uint8_t *image[], int stride[], int w,int h,int x,int y) } -static uint32_t +static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y) { @@ -135,7 +135,7 @@ vo_mga_flip_page(void) } -static uint32_t +static int draw_frame(uint8_t *src[]) { printf("!!! mga::draw_frame() called !!!\n"); @@ -195,7 +195,7 @@ draw_image(mp_image_t *mpi){ return VO_TRUE; } -static uint32_t +static int query_format(uint32_t format) { switch(format){ @@ -229,7 +229,7 @@ static void mga_fullscreen() printf( "Error in mga_vid_config ioctl (wrong mga_vid.o version?)" ); } -static uint32_t control(uint32_t request, void *data, ...) +static int control(uint32_t request, void *data, ...) { switch (request) { case VOCTRL_QUERY_FORMAT: @@ -418,7 +418,7 @@ static int mga_uninit(){ return 0; } -static uint32_t preinit(const char *vo_subdevice) +static int preinit(const char *vo_subdevice) { const char *devname=vo_subdevice?vo_subdevice:"/dev/mga_vid"; sws_rgb2rgb_init(get_sws_cpuflags()); |