summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-04-08 00:00:00 +0200
committerDudemanguy <random342@airmail.cc>2022-04-07 22:13:50 +0000
commitd6affda0a7b4b6b4b35a833820e7e98fd88b6c52 (patch)
treeb347067754d9cab1be8fea3010ca9cf0a0b7c8c2 /player
parent86dfdf083bf4f5b4bb074e850e85a3b133210d38 (diff)
downloadmpv-d6affda0a7b4b6b4b35a833820e7e98fd88b6c52.tar.bz2
mpv-d6affda0a7b4b6b4b35a833820e7e98fd88b6c52.tar.xz
options: add osd-playing-msg-duration
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 093c135878..c0db53f294 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -1139,7 +1139,9 @@ static void handle_playback_restart(struct MPContext *mpctx)
if (opts->osd_playing_msg && opts->osd_playing_msg[0]) {
char *msg =
mp_property_expand_escaped_string(mpctx, opts->osd_playing_msg);
- set_osd_msg(mpctx, 1, opts->osd_duration, "%s", msg);
+ set_osd_msg(mpctx, 1, opts->osd_playing_msg_duration ?
+ opts->osd_playing_msg_duration : opts->osd_duration,
+ "%s", msg);
talloc_free(msg);
}
}