summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-21 18:36:33 +0200
committerwm4 <wm4@nowhere>2012-10-24 21:56:34 +0200
commit93b384a799ff23836700989db771735ff2df68ca (patch)
tree783895fcd87d76b2ed88f0c1906ca1bd14bcd71f /mplayer.c
parent773668b6e85d4da4d252cb4ad8abd50448d70c7c (diff)
downloadmpv-93b384a799ff23836700989db771735ff2df68ca.tar.bz2
mpv-93b384a799ff23836700989db771735ff2df68ca.tar.xz
core: disable vf_sub auto-insertion
Since most VOs support rendering subs directly, this doesn't change much. Changes include: vo_null is faster, vo_image doesn't add subtitles by default (while vo_lavc does), vo_caca doesn't render subs (but you couldn't read them anyway).
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/mplayer.c b/mplayer.c
index de85ec2c33..6963471c0e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2267,38 +2267,6 @@ int reinit_video_chain(struct MPContext *mpctx)
sh_video->vfilter = vf_open_filter(opts, NULL, "vo", vf_arg);
}
- if (opts->ass_enabled) {
- int i;
- int insert = 1;
- if (opts->vf_settings)
- for (i = 0; opts->vf_settings[i].name; ++i)
- if (strcmp(opts->vf_settings[i].name, "sub") == 0) {
- insert = 0;
- break;
- }
- if (insert) {
- extern vf_info_t vf_info_sub;
- const vf_info_t *sub_vfs[] = {
- &vf_info_sub, NULL
- };
- char *vf_arg[] = {
- "auto", "yes", NULL
- };
- int retcode = 0;
- struct vf_instance *vf_sub = vf_open_plugin_noerr(opts, sub_vfs,
- sh_video->vfilter,
- "sub", vf_arg,
- &retcode);
- if (vf_sub)
- sh_video->vfilter = vf_sub;
- else if (retcode == -1) // vf_sub open() returns -1 VO has OSD
- mp_msg(MSGT_CPLAYER, MSGL_V, "[sub] vf_sub not needed\n");
- else
- mp_msg(MSGT_CPLAYER, MSGL_ERR,
- "sub: cannot add video filter\n");
- }
- }
-
sh_video->vfilter = append_filters(sh_video->vfilter, opts->vf_settings);
struct vf_instance *vf = sh_video->vfilter;