Add some const qualifiers to reduce warnings

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26320 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2008-04-02 01:01:22 +00:00
parent 63f2517dd2
commit 12ff2d2644
2 changed files with 6 additions and 5 deletions

View File

@ -20,10 +20,10 @@
#define MAX_PROFILE_DEPTH 20 #define MAX_PROFILE_DEPTH 20
static int 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 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 static int
show_profile(m_option_t *opt, char* name, char *param); 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 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; m_config_t* config = opt->priv;
char** list = NULL; char** list = NULL;
int i,r; int i,r;
@ -526,7 +527,7 @@ parse_profile(m_option_t* opt,char *name, char *param, void* dst, int src) {
} }
static void 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_config_t* config = opt->priv;
m_profile_t* p; m_profile_t* p;
char** list = NULL; char** list = NULL;

View File

@ -2182,7 +2182,7 @@ int reinit_video_chain(void) {
} }
if (insert) { if (insert) {
extern vf_info_t vf_info_ass; 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}; char* vf_arg[] = {"auto", "1", NULL};
vf_instance_t* vf_ass = vf_open_plugin(libass_vfs,sh_video->vfilter,"ass",vf_arg); vf_instance_t* vf_ass = vf_open_plugin(libass_vfs,sh_video->vfilter,"ass",vf_arg);
if (vf_ass) if (vf_ass)