summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-18 01:19:27 +0200
committerwm4 <wm4@nowhere>2014-09-18 01:23:33 +0200
commitea2b19f64673a975a6bafe3292d26eab51142a5f (patch)
treea93fc536215ba676f3d182f452b1bac0a3c2c20a /options/options.h
parent6c3d25e6f5f09a110ad0fffaeeea6a65ee5d228b (diff)
downloadmpv-ea2b19f64673a975a6bafe3292d26eab51142a5f.tar.bz2
mpv-ea2b19f64673a975a6bafe3292d26eab51142a5f.tar.xz
player: allow overriding OSD message for all OSD levels
Until now, you could override only level 3 with --osd-status-msg. Extend this, add add --osd-msg1 to --osd-msg3 (one for each OSD level). OSD level 0 always means disable OSD, so that isn't included. --osd-msg3 corresponds to --osd-status-msg, but they're not exactly the same. To allow more customization, --osd-msgN do not include the OSD symbol. The symbol can be manually added with "${osd-sym-cc}". We keep the "old" option for some short-term compatibility. --osd-msg1 should be particularly useful; for example you could do: --osd-msg1='${?pause==yes:${osd-sym-cc}}' to display a "paused" symbol when paused, and nothing during normal playback. (Although admittedly, the syntax is quite a bit of work.)
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options/options.h b/options/options.h
index 967982ea5c..aeb404ecfe 100644
--- a/options/options.h
+++ b/options/options.h
@@ -148,6 +148,7 @@ typedef struct MPOpts {
char *osd_playing_msg;
char *status_msg;
char *osd_status_msg;
+ char *osd_msg[3];
char *heartbeat_cmd;
float heartbeat_interval;
int player_idle_mode;