mirror of
https://github.com/mpv-player/mpv
synced 2024-12-19 05:15:12 +00:00
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).
This commit is contained in:
parent
903bd1d893
commit
c99a966251
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user