summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
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 /libmpcodecs
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 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_sub.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libmpcodecs/vf_sub.c b/libmpcodecs/vf_sub.c
index e377d589c5..78f75221cb 100644
--- a/libmpcodecs/vf_sub.c
+++ b/libmpcodecs/vf_sub.c
@@ -49,10 +49,6 @@ static const struct vf_priv_s {
unsigned int outfmt;
struct mp_csp_details csp;
- // 1 = auto-added filter: insert only if chain does not support OSD already
- // 0 = insert always
- int auto_insert;
-
struct osd_state *osd;
struct mp_osd_res dim;
} vf_priv_dflt = {
@@ -276,21 +272,12 @@ static const unsigned int fmt_list[] = {
static int vf_open(vf_instance_t *vf, char *args)
{
- int flags;
vf->priv->outfmt = vf_match_csp(&vf->next, fmt_list, IMGFMT_YV12);
- if (vf->priv->outfmt)
- flags = vf_next_query_format(vf, vf->priv->outfmt);
if (!vf->priv->outfmt) {
uninit(vf);
return 0;
- } else if (vf->priv->auto_insert && flags & VFCAP_OSD) {
- uninit(vf);
- return -1;
}
- if (vf->priv->auto_insert)
- mp_msg(MSGT_ASS, MSGL_INFO, "[sub] auto-open\n");
-
vf->config = config;
vf->query_format = query_format;
vf->uninit = uninit;
@@ -303,7 +290,6 @@ static int vf_open(vf_instance_t *vf, char *args)
#define ST_OFF(f) M_ST_OFF(struct vf_priv_s, f)
static const m_option_t vf_opts_fields[] = {
- {"auto", ST_OFF(auto_insert), CONF_TYPE_FLAG, 0, 0, 1, NULL},
{NULL, NULL, 0, 0, 0, 0, NULL}
};