Mercurial > mplayer.hg
changeset 33313:169a40da4c53
Add "const" to equalizer name argument to avoid compiler warnings.
author | reimar |
---|---|
date | Sat, 07 May 2011 18:48:31 +0000 |
parents | fdfabd2d4476 |
children | d30987a7e6cf |
files | libvo/vo_dfbmga.c libvo/x11_common.c libvo/x11_common.h |
diffstat | 3 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_dfbmga.c Sat May 07 18:44:29 2011 +0000 +++ b/libvo/vo_dfbmga.c Sat May 07 18:48:31 2011 +0000 @@ -1335,7 +1335,7 @@ } static int -set_equalizer( char *data, int value ) +set_equalizer( const char *data, int value ) { DFBResult res; DFBColorAdjustment ca; @@ -1375,7 +1375,7 @@ } static int -get_equalizer( char *data, int *value ) +get_equalizer( const char *data, int *value ) { DFBResult res; DFBColorAdjustment ca;
--- a/libvo/x11_common.c Sat May 07 18:44:29 2011 +0000 +++ b/libvo/x11_common.c Sat May 07 18:48:31 2011 +0000 @@ -1827,7 +1827,7 @@ return (unsigned short) (s * 65535); } -uint32_t vo_x11_set_equalizer(char *name, int value) +uint32_t vo_x11_set_equalizer(const char *name, int value) { float gamma, brightness, contrast; float rf, gf, bf; @@ -1878,7 +1878,7 @@ return VO_TRUE; } -uint32_t vo_x11_get_equalizer(char *name, int *value) +uint32_t vo_x11_get_equalizer(const char *name, int *value) { if (cmap == None) return VO_NOTAVAIL;
--- a/libvo/x11_common.h Sat May 07 18:44:29 2011 +0000 +++ b/libvo/x11_common.h Sat May 07 18:48:31 2011 +0000 @@ -76,8 +76,8 @@ void vo_x11_setlayer( Display * mDisplay,Window vo_window,int layer ); void vo_x11_uninit(void); Colormap vo_x11_create_colormap(XVisualInfo *vinfo); -uint32_t vo_x11_set_equalizer(char *name, int value); -uint32_t vo_x11_get_equalizer(char *name, int *value); +uint32_t vo_x11_set_equalizer(const char *name, int value); +uint32_t vo_x11_get_equalizer(const char *name, int *value); void fstype_help(void); Window vo_x11_create_smooth_window( Display *mDisplay, Window mRoot, Visual *vis, int x, int y, unsigned int width, unsigned int height,