[MPlayer-cvslog] r33400 - in trunk/libvo: vo_dfbmga.c x11_common.c x11_common.h

reimar subversion at mplayerhq.hu
Sat May 7 20:48:31 CEST 2011


Author: reimar
Date: Sat May  7 20:48:31 2011
New Revision: 33400

Log:
Add "const" to equalizer name argument to avoid compiler warnings.

Modified:
   trunk/libvo/vo_dfbmga.c
   trunk/libvo/x11_common.c
   trunk/libvo/x11_common.h

Modified: trunk/libvo/vo_dfbmga.c
==============================================================================
--- trunk/libvo/vo_dfbmga.c	Sat May  7 20:44:29 2011	(r33399)
+++ trunk/libvo/vo_dfbmga.c	Sat May  7 20:48:31 2011	(r33400)
@@ -1335,7 +1335,7 @@ draw_image( mp_image_t *mpi )
 }
 
 static int
-set_equalizer( char *data, int value )
+set_equalizer( const char *data, int value )
 {
      DFBResult res;
      DFBColorAdjustment ca;
@@ -1375,7 +1375,7 @@ set_equalizer( char *data, int value )
 }
 
 static int
-get_equalizer( char *data, int *value )
+get_equalizer( const char *data, int *value )
 {
      DFBResult res;
      DFBColorAdjustment ca;

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Sat May  7 20:44:29 2011	(r33399)
+++ trunk/libvo/x11_common.c	Sat May  7 20:48:31 2011	(r33400)
@@ -1827,7 +1827,7 @@ static int transform_color(float val,
     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 @@ uint32_t vo_x11_set_equalizer(char *name
     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;

Modified: trunk/libvo/x11_common.h
==============================================================================
--- trunk/libvo/x11_common.h	Sat May  7 20:44:29 2011	(r33399)
+++ trunk/libvo/x11_common.h	Sat May  7 20:48:31 2011	(r33400)
@@ -76,8 +76,8 @@ void vo_x11_fullscreen( void );
 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,


More information about the MPlayer-cvslog mailing list