summaryrefslogtreecommitdiffstats
path: root/player/core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-21 23:40:45 +0200
committerwm4 <wm4@nowhere>2014-09-21 23:48:24 +0200
commit903bd1d8939c1510649b71389554d2d485952784 (patch)
treec1a58c0cec14069290ba3e277d65e0662ec458a9 /player/core.h
parent4a0bbe256ef866d0f80ee56af4d5fd4c65cd8d5b (diff)
downloadmpv-903bd1d8939c1510649b71389554d2d485952784.tar.bz2
mpv-903bd1d8939c1510649b71389554d2d485952784.tar.xz
command: simplify OSD property display code
Probably not many user-visible changes. One notable change is that the terminal OSD code for OSD bar fallback handling is removed with no replacement. Instead, terminal OSD gets the same text message as normal OSD. For volume, this is ok, because the text message is reasonable. Other properties will look worse, but could be adjusted, and there are in fact no other such properties that would be useful in audio-only mode. The fallback message for seeking falls away as well, but that message was useless anyway - the terminal status line provides all information anyway. I believe the show_property_osd() code is now much easier to follow.
Diffstat (limited to 'player/core.h')
-rw-r--r--player/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h
index 434be6e1e9..d9d7798faf 100644
--- a/player/core.h
+++ b/player/core.h
@@ -428,7 +428,7 @@ void update_window_title(struct MPContext *mpctx, bool force);
void stream_dump(struct MPContext *mpctx);
// osd.c
-void set_osd_bar(struct MPContext *mpctx, int type, const char* name,
+void set_osd_bar(struct MPContext *mpctx, int type,
double min, double max, double neutral, double val);
void set_osd_msg(struct MPContext *mpctx, int level, int time,
const char* fmt, ...) PRINTF_ATTRIBUTE(4,5);