0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

command: fix weird stuff

Happens to fix some aspects of some properties (especially reading
"option-flags/x" as native value).
This commit is contained in:
wm4 2014-11-13 17:25:04 +01:00
parent 23e0682dd4
commit dbf59abe05

View File

@ -461,6 +461,7 @@ int m_property_strdup_ro(int action, void* arg, const char *var)
// This does not support write access.
int m_property_read_sub(const struct m_sub_property *props, int action, void *arg)
{
m_property_unkey(&action, &arg);
switch (action) {
case M_PROPERTY_GET_TYPE:
*(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_NODE};