summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-21 00:04:46 +0200
committerwm4 <wm4@nowhere>2013-05-21 00:04:46 +0200
commitd356f3efd278d38e0b0cfca05b37e40d40118f6a (patch)
tree54b920947d01772b5d0db99a531616f9746eaaee /core
parent266230ad64eddb663cfcf12ad248f9ae178d22ba (diff)
downloadmpv-d356f3efd278d38e0b0cfca05b37e40d40118f6a.tar.bz2
mpv-d356f3efd278d38e0b0cfca05b37e40d40118f6a.tar.xz
m_option: fix -vf-del in profiles
We don't bother with option verification (as it happens in profiles), because it's barely possible.
Diffstat (limited to 'core')
-rw-r--r--core/m_option.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/m_option.c b/core/m_option.c
index 1d6c49e851..e291165cbf 100644
--- a/core/m_option.c
+++ b/core/m_option.c
@@ -2047,8 +2047,9 @@ static bool obj_setting_equals(m_obj_settings_t *a, m_obj_settings_t *b)
static int obj_settings_list_del(struct bstr opt_name, struct bstr param,
void *dst)
{
- m_obj_settings_t *obj_list = dst ? VAL(dst) : NULL;
- int r = 1;
+ if (!dst)
+ return 1; // for profiles; pretend all is ok
+ m_obj_settings_t *obj_list = VAL(dst);
if (dst && !obj_list) {
mp_msg(MSGT_CFGPARSER, MSGL_WARN, "Option %.*s: the list is empty.\n",
@@ -2103,7 +2104,7 @@ static int obj_settings_list_del(struct bstr opt_name, struct bstr param,
}
talloc_free(mark_del);
- return r;
+ return 1;
}
static void free_obj_settings_list(void *dst)