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. --- player/command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 9951eb1293..03b444c062 100644 --- a/player/command.c +++ b/player/command.c @@ -2294,7 +2294,8 @@ static int edit_filters(struct MPContext *mpctx, enum stream_type mediatype, struct m_obj_settings *new_chain = NULL; m_option_copy(co->opt, &new_chain, co->data); - int r = m_option_parse(co->opt, bstr0(optname), bstr0(arg), &new_chain); + int r = m_option_parse(mpctx->log, co->opt, bstr0(optname), bstr0(arg), + &new_chain); if (r >= 0) r = set_filters(mpctx, mediatype, new_chain); -- cgit v1.2.3