diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/command.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/command.c b/core/command.c index c5c818e6b7..2b902eef58 100644 --- a/core/command.c +++ b/core/command.c @@ -536,6 +536,16 @@ static int mp_property_metadata(m_option_t *prop, int action, void *arg, *(char ***)arg = slist; return M_PROPERTY_OK; } + case M_PROPERTY_PRINT: { + char **list = demuxer->info; + char *res = NULL; + for (int n = 0; list[n]; n += 2) { + res = talloc_asprintf_append_buffer(res, "%s: %s\n", + list[n], list[n + 1]); + } + *(char **)arg = res; + return M_PROPERTY_OK; + } case M_PROPERTY_KEY_ACTION: { struct m_property_action_arg *ka = arg; char *meta = demux_info_get(demuxer, ka->key); |