Mercurial > mplayer.hg
comparison mencoder.c @ 31921:c406383caa61
Use vf_open_filter instead of vf_open_plugin+hacks.
author | reimar |
---|---|
date | Sat, 21 Aug 2010 11:30:29 +0000 |
parents | ff8a2ac939ad |
children | 8c6e90c5fcc4 |
comparison
equal
deleted
inserted
replaced
31920:ff8a2ac939ad | 31921:c406383caa61 |
---|---|
1028 if (strcmp(vf_settings[i].name, "ass") == 0) { | 1028 if (strcmp(vf_settings[i].name, "ass") == 0) { |
1029 insert = 0; | 1029 insert = 0; |
1030 break; | 1030 break; |
1031 } | 1031 } |
1032 if (insert) { | 1032 if (insert) { |
1033 extern const vf_info_t vf_info_ass; | |
1034 static const vf_info_t * const libass_vfs[] = {&vf_info_ass, NULL}; | |
1035 char* vf_arg[] = {"auto", "1", NULL}; | 1033 char* vf_arg[] = {"auto", "1", NULL}; |
1036 vf_instance_t* vf_ass = vf_open_plugin(libass_vfs,sh_video->vfilter,"ass",vf_arg); | 1034 vf_instance_t* vf_ass = vf_open_filter(sh_video->vfilter,"ass",vf_arg); |
1037 if (vf_ass) | 1035 if (vf_ass) |
1038 sh_video->vfilter=(void*)vf_ass; | 1036 sh_video->vfilter=(void*)vf_ass; |
1039 else | 1037 else |
1040 mp_msg(MSGT_CPLAYER,MSGL_ERR, "ASS: cannot add video filter\n"); | 1038 mp_msg(MSGT_CPLAYER,MSGL_ERR, "ASS: cannot add video filter\n"); |
1041 } | 1039 } |