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

iive subversion at mplayerhq.hu
Fri May 6 12:12:54 CEST 2011


Author: iive
Date: Fri May  6 12:12:54 2011
New Revision: 33387

Log:
Make vo_xv_set/get_eq() functions expect "const char *" for attribute name.
Prevents warning when used with vf_equalizer_t struct.

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

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Fri May  6 11:42:22 2011	(r33386)
+++ trunk/libvo/x11_common.c	Fri May  6 12:12:54 2011	(r33387)
@@ -1894,7 +1894,7 @@ uint32_t vo_x11_get_equalizer(char *name
 }
 
 #ifdef CONFIG_XV
-int vo_xv_set_eq(uint32_t xv_port, char *name, int value)
+int vo_xv_set_eq(uint32_t xv_port, const char *name, int value)
 {
     XvAttribute *attributes;
     int i, howmany, xv_atom;
@@ -1964,7 +1964,7 @@ int vo_xv_set_eq(uint32_t xv_port, char 
     return VO_FALSE;
 }
 
-int vo_xv_get_eq(uint32_t xv_port, char *name, int *value)
+int vo_xv_get_eq(uint32_t xv_port, const char *name, int *value)
 {
 
     XvAttribute *attributes;

Modified: trunk/libvo/x11_common.h
==============================================================================
--- trunk/libvo/x11_common.h	Fri May  6 11:42:22 2011	(r33386)
+++ trunk/libvo/x11_common.h	Fri May  6 12:12:54 2011	(r33387)
@@ -102,8 +102,8 @@ extern XSizeHints vo_hint;
 //XvPortID xv_port;
 extern unsigned int xv_port;
 
-int vo_xv_set_eq(uint32_t xv_port, char * name, int value);
-int vo_xv_get_eq(uint32_t xv_port, char * name, int *value);
+int vo_xv_set_eq(uint32_t xv_port, const char * name, int value);
+int vo_xv_get_eq(uint32_t xv_port, const char * name, int *value);
 
 int vo_xv_enable_vsync(void);
 


More information about the MPlayer-cvslog mailing list