diff options
author | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-02 01:01:22 +0000 |
---|---|---|
committer | uau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-02 01:01:22 +0000 |
commit | 12ff2d26443daa2f085536e44119a68107384ec3 (patch) | |
tree | 9786c27288fced134dfb743052e1b58bea792076 | |
parent | 63f2517dd233adf6096e2b378c9cc0a8c8ba0d66 (diff) | |
download | mpv-12ff2d26443daa2f085536e44119a68107384ec3.tar.bz2 mpv-12ff2d26443daa2f085536e44119a68107384ec3.tar.xz |
Add some const qualifiers to reduce warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26320 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | m_config.c | 9 | ||||
-rw-r--r-- | mplayer.c | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/m_config.c b/m_config.c index 080bbe4e36..c030b13233 100644 --- a/m_config.c +++ b/m_config.c @@ -20,10 +20,10 @@ #define MAX_PROFILE_DEPTH 20 static int -parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src); +parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src); static void -set_profile(m_option_t *opt, void* dst, void* src); +set_profile(const m_option_t *opt, void* dst, void* src); static int show_profile(m_option_t *opt, char* name, char *param); @@ -491,7 +491,8 @@ m_config_set_profile(m_config_t* config, m_profile_t* p) { } static int -parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src) { +parse_profile(const m_option_t *opt, const char *name, char *param, void *dst, int src) +{ m_config_t* config = opt->priv; char** list = NULL; int i,r; @@ -526,7 +527,7 @@ parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src) { } static void -set_profile(m_option_t *opt, void* dst, void* src) { +set_profile(const m_option_t *opt, void *dst, void *src) { m_config_t* config = opt->priv; m_profile_t* p; char** list = NULL; @@ -2182,7 +2182,7 @@ int reinit_video_chain(void) { } if (insert) { extern vf_info_t vf_info_ass; - vf_info_t* libass_vfs[] = {&vf_info_ass, NULL}; + const vf_info_t* libass_vfs[] = {&vf_info_ass, NULL}; char* vf_arg[] = {"auto", "1", NULL}; vf_instance_t* vf_ass = vf_open_plugin(libass_vfs,sh_video->vfilter,"ass",vf_arg); if (vf_ass) |