mirror of
https://github.com/mpv-player/mpv
synced 2025-02-24 17:06:58 +00:00
core: Set OSD contents better while paused
Handle timing out of OSD messages and set the OSD function symbol to pause instead of play. The implementation is hackish and should be cleaned up later with other pause loop changes.
This commit is contained in:
parent
8ed6d26977
commit
1f782eb802
10
mplayer.c
10
mplayer.c
@ -1421,8 +1421,7 @@ static mp_osd_msg_t* get_osd_msg(struct MPContext *mpctx)
|
||||
osd_visible = 0;
|
||||
vo_osd_progbar_type = -1; // disable
|
||||
vo_osd_changed(OSDTYPE_PROGBAR);
|
||||
if (mpctx->osd_function != OSD_PAUSE)
|
||||
mpctx->osd_function = OSD_PLAY;
|
||||
mpctx->osd_function = mpctx->paused ? OSD_PAUSE : OSD_PLAY;
|
||||
}
|
||||
}
|
||||
|
||||
@ -2377,6 +2376,11 @@ static void pause_loop(struct MPContext *mpctx)
|
||||
vf_menu_pause_update(vf_menu);
|
||||
#endif
|
||||
usec_sleep(20000);
|
||||
update_osd_msg(mpctx);
|
||||
int hack = vo_osd_changed(0);
|
||||
vo_osd_changed(hack);
|
||||
if (hack)
|
||||
break;
|
||||
}
|
||||
#ifdef CONFIG_GUI
|
||||
if (use_gui) {
|
||||
@ -3913,6 +3917,8 @@ if(auto_quality>0){
|
||||
add_step_frame(mpctx);
|
||||
break;
|
||||
}
|
||||
else
|
||||
vo_osd_changed(0);
|
||||
}
|
||||
pause_loop(mpctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user