mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user