1
mirror of https://github.com/mpv-player/mpv synced 2024-08-20 08:55:06 +02:00

player: don't send win32 taskbar update before window is created

If the win32 taskbar progress update is sent before the VO window is
created, then w32_common.c will ignore it because the actual taskbar
object was not created yet. (At least this is what I suspect happens.
The window is already created at this point, but not mapped.)

Hopefully fix this is fixed by creating until after the window is
created, i.e. the VO has been configured at least once.

Untested (who wants to boot into Windows just to wait until it has
applied all of its stupid updates).

Also not explicit is whether update_vo_playback_state() will actually be
called soon enough in all cases. It probably is.

Probably fixes #3482.
This commit is contained in:
wm4 2016-09-02 15:01:09 +02:00
parent b2657814c9
commit f2e25e9e1f

View File

@ -131,7 +131,7 @@ bool mp_get_cache_idle(struct MPContext *mpctx)
void update_vo_playback_state(struct MPContext *mpctx)
{
if (mpctx->video_out) {
if (mpctx->video_out && mpctx->video_out->config_ok) {
struct voctrl_playback_state oldstate = mpctx->vo_playback_state;
struct voctrl_playback_state newstate = {
.taskbar_progress = mpctx->opts->vo->taskbar_progress,