From 23e0682dd4e0bf61a45d9c907ede2361dac28f5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 13 Nov 2014 16:18:40 +0100 Subject: command: export mpv configure arguments as property It seems strange that a client API user can't get this string, other than analyzing the mpv log output. --- player/command.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 4bbb46860d..f53cec04c3 100644 --- a/player/command.c +++ b/player/command.c @@ -2932,6 +2932,12 @@ static int mp_property_version(void *ctx, struct m_property *prop, return m_property_strdup_ro(action, arg, mpv_version); } +static int mp_property_configuration(void *ctx, struct m_property *prop, + int action, void *arg) +{ + return m_property_strdup_ro(action, arg, CONFIGURATION); +} + static int mp_property_alias(void *ctx, struct m_property *prop, int action, void *arg) { @@ -3232,6 +3238,7 @@ static const struct m_property mp_properties[] = { {"display-names", mp_property_display_names}, {"mpv-version", mp_property_version}, + {"mpv-configuration", mp_property_configuration}, {"options", mp_property_options}, {"file-local-options", mp_property_local_options}, -- cgit v1.2.3