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

command: list filters/VOs/AOs with option-info

Another special-case, but pretty simple after all.
This commit is contained in:
wm4 2014-11-14 14:52:51 +01:00
parent 5d12a2696e
commit 508d236c9a

View File

@ -3037,6 +3037,17 @@ static int mp_property_option_info(void *ctx, struct m_property *prop,
MP_TARRAY_APPEND(NULL, choices, num, alt->name);
MP_TARRAY_APPEND(NULL, choices, num, NULL);
}
if (opt->type == &m_option_type_obj_settings_list) {
struct m_obj_list *objs = opt->priv;
int num = 0;
for (int n = 0; ; n++) {
struct m_obj_desc desc = {0};
if (!objs->get_desc(&desc, n))
break;
MP_TARRAY_APPEND(NULL, choices, num, (char *)desc.name);
}
MP_TARRAY_APPEND(NULL, choices, num, NULL);
}
struct m_sub_property props[] = {
{"name", SUB_PROP_STR(co->name)},