summaryrefslogtreecommitdiffstats
path: root/options/m_property.c
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-20 06:53:09 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commit17d91b9d4d2d208f4a847395198cdbbcad18de93 (patch)
treee87e6f96d1b9f29a268a43a7d16ad4bed2e8b857 /options/m_property.c
parent4ebfe9851c63c8aa55292c01f23fedd9313ed191 (diff)
downloadmpv-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.c4
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;