# HG changeset patch # User iive # Date 1304676774 0 # Node ID c7ebb0b711a6b9150422c9ec613fdc070025074e # Parent 4de57122abd731dfd11ccc8a86f21ccd614d1ca7 Make vo_xv_set/get_eq() functions expect "const char *" for attribute name. Prevents warning when used with vf_equalizer_t struct. diff -r 4de57122abd7 -r c7ebb0b711a6 libvo/x11_common.c --- a/libvo/x11_common.c Fri May 06 09:42:22 2011 +0000 +++ b/libvo/x11_common.c Fri May 06 10:12:54 2011 +0000 @@ -1894,7 +1894,7 @@ } #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 @@ 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; diff -r 4de57122abd7 -r c7ebb0b711a6 libvo/x11_common.h --- a/libvo/x11_common.h Fri May 06 09:42:22 2011 +0000 +++ b/libvo/x11_common.h Fri May 06 10:12:54 2011 +0000 @@ -102,8 +102,8 @@ //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);