mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 08:33:34 +00:00
player: fix previous commit
Of course we can't just skip updating the OSD if the playloop was woken up for the purpose of removing OSD after an OSD timer expired. Fixes e.g. OSD bars sometimes sticking along when seeking while paused.
This commit is contained in:
parent
bb9aad097a
commit
0b082b2086
@ -511,6 +511,7 @@ void update_osd_msg(struct MPContext *mpctx)
|
||||
double sleep = mpctx->osd_visible - now;
|
||||
if (sleep > 0) {
|
||||
mpctx->sleeptime = MPMIN(mpctx->sleeptime, sleep);
|
||||
mpctx->osd_idle_update = true;
|
||||
} else {
|
||||
mpctx->osd_visible = 0;
|
||||
mpctx->osd_progbar.type = -1; // disable
|
||||
@ -522,6 +523,7 @@ void update_osd_msg(struct MPContext *mpctx)
|
||||
double sleep = mpctx->osd_function_visible - now;
|
||||
if (sleep > 0) {
|
||||
mpctx->sleeptime = MPMIN(mpctx->sleeptime, sleep);
|
||||
mpctx->osd_idle_update = true;
|
||||
} else {
|
||||
mpctx->osd_function_visible = 0;
|
||||
mpctx->osd_function = 0;
|
||||
@ -539,6 +541,7 @@ void update_osd_msg(struct MPContext *mpctx)
|
||||
double sleep = mpctx->osd_msg_visible - now;
|
||||
if (sleep > 0) {
|
||||
mpctx->sleeptime = MPMIN(mpctx->sleeptime, sleep);
|
||||
mpctx->osd_idle_update = true;
|
||||
} else {
|
||||
talloc_free(mpctx->osd_msg_text);
|
||||
mpctx->osd_msg_text = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user