summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorAndre D <andre@andred.ca>2014-01-05 16:21:08 -0500
committerwm4 <wm4@nowhere>2014-01-31 19:08:26 +0100
commit14fdbe07acde25117d1aa8bbfdf12fe2c585af38 (patch)
treeec8d7b47ba0dbc6a356e8927f78ae33819604aeb /options
parent61ed9a874733c11642108236fd98bfdb685f378a (diff)
downloadmpv-14fdbe07acde25117d1aa8bbfdf12fe2c585af38.tar.bz2
mpv-14fdbe07acde25117d1aa8bbfdf12fe2c585af38.tar.xz
quvi: add option to not fetch subtitles
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index a92ace3ec0..d52672cde1 100644
--- a/options/options.c
+++ b/options/options.c
@@ -316,6 +316,7 @@ const m_option_t mp_opts[] = {
({"no", 0}, {"attachment", 1})),
OPT_STRING("quvi-format", quvi_format, 0),
+ OPT_FLAG("quvi-fetch-subtitles", quvi_fetch_subtitles, 0),
#if HAVE_CDDA
{ "cdda", (void *)&cdda_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
@@ -718,6 +719,7 @@ const struct MPOpts mp_default_opts = {
.sub_visibility = 1,
.sub_pos = 100,
.sub_speed = 1.0,
+ .quvi_fetch_subtitles = 1,
.audio_output_channels = MP_CHMAP_INIT_STEREO,
.audio_output_format = 0, // AF_FORMAT_UNKNOWN
.playback_speed = 1.,
diff --git a/options/options.h b/options/options.h
index b4366a2f2e..6b5e1c7392 100644
--- a/options/options.h
+++ b/options/options.h
@@ -158,6 +158,7 @@ typedef struct MPOpts {
int forced_subs_only;
int stretch_dvd_subs;
char *quvi_format;
+ int quvi_fetch_subtitles;
// subreader.c
int suboverlap_enabled;