From d6affda0a7b4b6b4b35a833820e7e98fd88b6c52 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Fri, 8 Apr 2022 00:00:00 +0200 Subject: options: add osd-playing-msg-duration --- player/playloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player') 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); } } -- cgit v1.2.3