[MPlayer-cvslog] r32001 - trunk/mencoder.c

reimar subversion at mplayerhq.hu
Sat Aug 21 13:22:45 CEST 2010


Author: reimar
Date: Sat Aug 21 13:22:45 2010
New Revision: 32001

Log:
Add consts to avoid a warning about pointer type mismatch in function
argument.

Modified:
   trunk/mencoder.c

Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c	Sat Aug 21 13:19:45 2010	(r32000)
+++ trunk/mencoder.c	Sat Aug 21 13:22:45 2010	(r32001)
@@ -1030,8 +1030,8 @@ default: {
           break;
         }
     if (insert) {
-      extern vf_info_t vf_info_ass;
-      vf_info_t* libass_vfs[] = {&vf_info_ass, NULL};
+      extern const vf_info_t vf_info_ass;
+      static const vf_info_t * const 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