summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-21 23:54:29 +0200
committerwm4 <wm4@nowhere>2014-09-21 23:54:33 +0200
commitc99a966251c9ab3c2bdc5b149ea22a27162168ae (patch)
tree375ab3cbe73806df794b1b17e87e0873acc8199f /player/command.c
parent903bd1d8939c1510649b71389554d2d485952784 (diff)
downloadmpv-c99a966251c9ab3c2bdc5b149ea22a27162168ae.tar.bz2
mpv-c99a966251c9ab3c2bdc5b149ea22a27162168ae.tar.xz
command: when changing a property, always show it on OSD
This means that if a property not listed in property_osd_display[] is changed, it will be shown on the OSD as "name: ${name}". Properties that are listed in property_osd_display[] and have osd_name not set stay invisible by default. This is used for "pause" and "fullscreen", which (like before this commit) are not shown by default, because it would be annoying. The defaults still can be changed with command prefixes (osd-msg, no-osd, others).
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 42b12a4100..43e465004c 100644
--- a/player/command.c
+++ b/player/command.c
@@ -3066,13 +3066,16 @@ static const struct property_osd_display {
{ "tv-hue", "Hue", .osd_progbar = OSD_HUE},
{ "tv-saturation", "Saturation", .osd_progbar = OSD_SATURATION },
{ "tv-contrast", "Contrast", .osd_progbar = OSD_CONTRAST },
+ // By default, don't display the following properties on OSD
+ { "pause", NULL },
+ { "fullscreen", NULL },
{0}
};
static void show_property_osd(MPContext *mpctx, const char *name, int osd_mode)
{
struct MPOpts *opts = mpctx->opts;
- struct property_osd_display disp = { .name = name };
+ struct property_osd_display disp = { .name = name, .osd_name = name };
if (!osd_mode)
return;