From 2fc07dcf302061c6f04a7570e2c1825bb2393513 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 27 Jul 2013 21:24:44 +0200 Subject: command: mark special options as unavailable Special options (like -v, -playlist, etc.) don't have data associated with them, so reading them with the "options" property makes no sense. --- core/command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/command.c b/core/command.c index 00b6ed92f5..d60c07c7f1 100644 --- a/core/command.c +++ b/core/command.c @@ -1605,6 +1605,8 @@ static int mp_property_options(m_option_t *prop, int action, void *arg, bstr0(ka->key)); if (!opt) return M_PROPERTY_UNKNOWN; + if (!opt->data) + return M_PROPERTY_UNAVAILABLE; switch (ka->action) { case M_PROPERTY_GET: -- cgit v1.2.3