mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
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.
This commit is contained in:
parent
13a0e6373e
commit
2fc07dcf30
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user