diff options
author | wm4 <wm4@nowhere> | 2017-06-12 20:13:18 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-06-12 20:13:18 +0200 |
commit | 26a173f40c460bb642108d9fffd1255fe3f37520 (patch) | |
tree | cfb98f7c0e1b4b46955811ecf3a93e5adcd8e93a /options/m_option.c | |
parent | a3be4cf2aba97fa8d726d815a56ed8b942448b0e (diff) | |
download | mpv-26a173f40c460bb642108d9fffd1255fe3f37520.tar.bz2 mpv-26a173f40c460bb642108d9fffd1255fe3f37520.tar.xz |
m_option: revert commit 2793a70e0fb3
Diffstat (limited to 'options/m_option.c')
-rw-r--r-- | options/m_option.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/options/m_option.c b/options/m_option.c index 87e6eead36..cdabfe65a9 100644 --- a/options/m_option.c +++ b/options/m_option.c @@ -2296,13 +2296,12 @@ static int parse_timestring(struct bstr str, double *time, char endchar) static int parse_time(struct mp_log *log, const m_option_t *opt, struct bstr name, struct bstr param, void *dst) { - double time; - if (param.len == 0) return M_OPT_MISSING_PARAM; + double time = MP_NOPTS_VALUE; if (HAS_NOPTS(opt) && bstr_equals0(param, "no")) { - time = MP_NOPTS_VALUE; + // nothing } else if (!parse_timestring(param, &time, 0)) { mp_err(log, "Option %.*s: invalid time: '%.*s'\n", BSTR_P(name), BSTR_P(param)); |