From 7c69848e3eb7ca2543233465333693285c54b1e6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 14 Oct 2014 19:20:36 +0200 Subject: player: fix OSD cycling OSD cycling attempted to remove the current message by setting an empty message with duration 0. Duration 0 tripped up a corner case causing no OSD to be displayed (until the next message was set), so exclude this explicitly. --- player/osd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index 605c4b6757..eccaf742e4 100644 --- a/player/osd.c +++ b/player/osd.c @@ -274,6 +274,8 @@ static bool set_osd_msg_va(struct MPContext *mpctx, int level, int time, mpctx->osd_msg_next_duration = time / 1000.0; mpctx->osd_force_update = true; mpctx->sleeptime = 0; + if (mpctx->osd_msg_next_duration <= 0) + mpctx->osd_msg_visible = mp_time_sec(); return true; } -- cgit v1.2.3