From d8d42b44fc717c695af59c14213d54885088ea37 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 21 Dec 2013 19:45:42 +0100 Subject: m_option, m_config: mp_msg conversions Always pass around mp_log contexts in the option parser code. This of course affects all users of this API as well. In stream.c, pass a mp_null_log, because we can't do it properly yet. This will be fixed later. --- options/m_property.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/m_property.c') diff --git a/options/m_property.c b/options/m_property.c index 49776f6af0..9c8649c5ab 100644 --- a/options/m_property.c +++ b/options/m_property.c @@ -158,7 +158,7 @@ int m_property_do(struct mp_log *log, const m_option_t *prop_list, if (!log) return M_PROPERTY_ERROR; // (reject 0 return value: success, but empty string with flag) - if (m_option_parse(&opt, bstr0(name), bstr0(arg), &val) <= 0) + if (m_option_parse(log, &opt, bstr0(name), bstr0(arg), &val) <= 0) return M_PROPERTY_ERROR; r = do_action(prop_list, name, M_PROPERTY_SET, &val, ctx); m_option_free(&opt, &val); -- cgit v1.2.3