diff options
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c index 6f2c15b047..412afc5e11 100644 --- a/player/command.c +++ b/player/command.c @@ -3588,6 +3588,20 @@ static int mp_property_encoders(void *ctx, struct m_property *prop, return r; } +static int mp_property_lavf_demuxers(void *ctx, struct m_property *prop, + int action, void *arg) +{ + switch (action) { + case M_PROPERTY_GET: + *(char ***)arg = mp_get_lavf_demuxers(); + return M_PROPERTY_OK; + case M_PROPERTY_GET_TYPE: + *(struct m_option *)arg = (struct m_option){.type = CONF_TYPE_STRING_LIST}; + return M_PROPERTY_OK; + } + return M_PROPERTY_NOT_IMPLEMENTED; +} + static int mp_property_version(void *ctx, struct m_property *prop, int action, void *arg) { @@ -4027,6 +4041,7 @@ static const struct m_property mp_properties_base[] = { {"protocol-list", mp_property_protocols}, {"decoder-list", mp_property_decoders}, {"encoder-list", mp_property_encoders}, + {"demuxer-lavf-list", mp_property_lavf_demuxers}, {"mpv-version", mp_property_version}, {"mpv-configuration", mp_property_configuration}, |