changeset 31920:ff8a2ac939ad

Add consts to avoid a warning about pointer type mismatch in function argument.
author reimar
date Sat, 21 Aug 2010 11:22:45 +0000
parents d9a6b45b8ef9
children c406383caa61
files mencoder.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Sat Aug 21 11:19:45 2010 +0000
+++ b/mencoder.c	Sat Aug 21 11:22:45 2010 +0000
@@ -1030,8 +1030,8 @@
           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)