summaryrefslogtreecommitdiffstats
path: root/mpvcore/m_option.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/m_option.c')
-rw-r--r--mpvcore/m_option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpvcore/m_option.c b/mpvcore/m_option.c
index 095e86a2b5..cd88b4cdca 100644
--- a/mpvcore/m_option.c
+++ b/mpvcore/m_option.c
@@ -2140,7 +2140,7 @@ static int parse_obj_settings(struct bstr opt, struct bstr *pstr,
}
if (_ret && desc.init_options) {
- struct m_config *config = m_config_from_obj_desc(NULL, &desc);
+ struct m_config *config = m_config_from_obj_desc_noalloc(NULL, &desc);
bstr s = bstr0(desc.init_options);
m_obj_parse_sub_config(opt, str, &s, config,
M_SETOPT_CHECK_ONLY, &plist);
@@ -2169,7 +2169,7 @@ static int parse_obj_settings(struct bstr opt, struct bstr *pstr,
} else {
struct m_config *config = NULL;
if (!skip)
- config = m_config_from_obj_desc(NULL, &desc);
+ config = m_config_from_obj_desc_noalloc(NULL, &desc);
r = m_obj_parse_sub_config(opt, str, pstr, config,
M_SETOPT_CHECK_ONLY,
_ret ? &plist : NULL);