From c99a966251c9ab3c2bdc5b149ea22a27162168ae Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 21 Sep 2014 23:54:29 +0200 Subject: 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). --- player/command.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'player') 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; -- cgit v1.2.3