# HG changeset patch # User reimar # Date 1282389765 0 # Node ID ff8a2ac939ade6799eca4530bfd85597274bb0b5 # Parent d9a6b45b8ef91016e783b31aad9d28ea5e7802ac Add consts to avoid a warning about pointer type mismatch in function argument. diff -r d9a6b45b8ef9 -r ff8a2ac939ad mencoder.c --- 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)