[MPlayer-cvslog] r26320 - in trunk: m_config.c mplayer.c

uau subversion at mplayerhq.hu
Wed Apr 2 03:01:22 CEST 2008


Author: uau
Date: Wed Apr  2 03:01:22 2008
New Revision: 26320

Log:
Add some const qualifiers to reduce warnings


Modified:
   trunk/m_config.c
   trunk/mplayer.c

Modified: trunk/m_config.c
==============================================================================
--- trunk/m_config.c	(original)
+++ trunk/m_config.c	Wed Apr  2 03:01:22 2008
@@ -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,
 }
 
 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
 }
 
 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;

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Wed Apr  2 03:01:22 2008
@@ -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)



More information about the MPlayer-cvslog mailing list