diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 06:53:09 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 17d91b9d4d2d208f4a847395198cdbbcad18de93 (patch) | |
tree | e87e6f96d1b9f29a268a43a7d16ad4bed2e8b857 /options/m_property.c | |
parent | 4ebfe9851c63c8aa55292c01f23fedd9313ed191 (diff) | |
download | mpv-17d91b9d4d2d208f4a847395198cdbbcad18de93.tar.bz2 mpv-17d91b9d4d2d208f4a847395198cdbbcad18de93.tar.xz |
options: transition properties from flag to bool
Diffstat (limited to 'options/m_property.c')
-rw-r--r-- | options/m_property.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/m_property.c b/options/m_property.c index 6e4c6066d0..0d870bd81c 100644 --- a/options/m_property.c +++ b/options/m_property.c @@ -352,14 +352,14 @@ void m_properties_print_help_list(struct mp_log *log, mp_info(log, "\nTotal: %d properties\n", count); } -int m_property_flag_ro(int action, void* arg, int var) +int m_property_bool_ro(int action, void* arg, int var) { switch (action) { case M_PROPERTY_GET: *(int *)arg = !!var; return M_PROPERTY_OK; case M_PROPERTY_GET_TYPE: - *(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_FLAG}; + *(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_BOOL}; return M_PROPERTY_OK; } return M_PROPERTY_NOT_IMPLEMENTED; |