Mercurial > mplayer.hg
changeset 33300:c7ebb0b711a6
Make vo_xv_set/get_eq() functions expect "const char *" for attribute name.
Prevents warning when used with vf_equalizer_t struct.
author | iive |
---|---|
date | Fri, 06 May 2011 10:12:54 +0000 |
parents | 4de57122abd7 |
children | 899d817e56fc |
files | libvo/x11_common.c libvo/x11_common.h |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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);