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/vo_dfbmga.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/vo_dfbmga.c')
-rw-r--r-- | libvo/vo_dfbmga.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libvo/vo_dfbmga.c b/libvo/vo_dfbmga.c index dbb9848091..f36f113b4a 100644 --- a/libvo/vo_dfbmga.c +++ b/libvo/vo_dfbmga.c @@ -226,7 +226,7 @@ get_layer_by_name( DFBDisplayLayerID id, static void uninit( void ); -static uint32_t +static int preinit( const char *arg ) { DFBResult res; @@ -544,7 +544,7 @@ static void release_config( void ) bufs[2] = NULL; } -static uint32_t +static int config( uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, @@ -856,7 +856,7 @@ config( uint32_t width, uint32_t height, return 0; } -static uint32_t +static int query_format( uint32_t format ) { switch (format) { @@ -996,13 +996,13 @@ draw_alpha( int x0, int y0, subframe->Unlock( subframe ); } -static uint32_t +static int draw_frame( uint8_t * src[] ) { return -1; } -static uint32_t +static int draw_slice( uint8_t * src[], int stride[], int w, int h, int x, int y ) { void *dst; @@ -1343,7 +1343,7 @@ get_equalizer( char *data, int *value ) return VO_TRUE; } -static uint32_t +static int control( uint32_t request, void *data, ... ) { switch (request) { |