summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-18 00:12:59 +0200
committerwm4 <wm4@nowhere>2014-09-18 00:12:59 +0200
commita522441bbe6817798ca58b93d7adb180a9598640 (patch)
treeca089414b5e0880de7678d7d06871342310d3247 /player/command.c
parenta173d3a2fba7c2c3d89af20077dec89ed0424030 (diff)
downloadmpv-a522441bbe6817798ca58b93d7adb180a9598640.tar.bz2
mpv-a522441bbe6817798ca58b93d7adb180a9598640.tar.xz
command: add osd-sym-cc property
This allows you to reproduce the OSD symbol.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/player/command.c b/player/command.c
index 6c881bcfca..8c2856c360 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2220,6 +2220,15 @@ static int mp_property_osd_par(void *ctx, struct m_property *prop,
return m_property_double_ro(action, arg, vo_res.display_par);
}
+static int mp_property_osd_sym(void *ctx, struct m_property *prop,
+ int action, void *arg)
+{
+ MPContext *mpctx = ctx;
+ char temp[20];
+ get_current_osd_sym(mpctx, temp, sizeof(temp));
+ return m_property_strdup_ro(action, arg, temp);
+}
+
/// Video fps (RO)
static int mp_property_fps(void *ctx, struct m_property *prop,
int action, void *arg)
@@ -2806,6 +2815,8 @@ static const struct m_property mp_properties[] = {
{"osd-height", mp_property_osd_h},
{"osd-par", mp_property_osd_par},
+ {"osd-sym-cc", mp_property_osd_sym},
+
// Subs
{"sid", mp_property_sub},
{"secondary-sid", mp_property_sub2},