command: use string list helper for option-info

This commit is contained in:
nanahi authored and Kacper Michajłow committed 2026-05-01 13:42:57 +02:00
1 parent 777401d7de
commit 41fb7f9eb2
1 file changed
+2 -2
+2 -2
View File
@@ -4054,8 +4054,8 @@ static int mp_property_option_info(void *ctx, struct m_property *prop,
.unavailable = !(has_minmax && opt->min != DBL_MIN)},
{"max", SUB_PROP_DOUBLE(opt->max),
.unavailable = !(has_minmax && opt->max != DBL_MAX)},
{"choices", .type = {.type = CONF_TYPE_STRING_LIST},
.value = {.string_list = choices}, .unavailable = !choices},
{"choices", SUB_PROP_STRING_LIST(choices),
.unavailable = !choices},
{0}
};