mirror of https://github.com/mpv-player/mpv
core/cfg-mplayer: fix segfault when using DVD subs
The option sub-forced-only was accidentally renamed back to
forcedsubsonly in commit 72205635ab
, causing a segfault in
mp_property_generic_option due to missing option.
This commit is contained in:
parent
6c1c04ba21
commit
f62c670709
|
@ -497,7 +497,7 @@ const m_option_t common_opts[] = {
|
||||||
{"sub-delay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
{"sub-delay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
||||||
{"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
{"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
|
||||||
OPT_MAKE_FLAGS("autosub", sub_auto, 0),
|
OPT_MAKE_FLAGS("autosub", sub_auto, 0),
|
||||||
{"forcedsubsonly", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
{"sub-forced-only", &forced_subs_only, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||||
// specify IFO file for VOBSUB subtitle
|
// specify IFO file for VOBSUB subtitle
|
||||||
{"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
{"ifo", &spudec_ifo, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||||
// enable Closed Captioning display
|
// enable Closed Captioning display
|
||||||
|
|
Loading…
Reference in New Issue