# HG changeset patch # User ib # Date 1309281817 0 # Node ID e7ef5b75546203c69114b5254d3d1942ef0d3657 # Parent c78784f20d0bbe414a9d86d5310d85ac63826809 Redraw GUI only after all necessary values have been set. Move guiGetEvent() type guiSetVolume call before the redraw call. diff -r c78784f20d0b -r e7ef5b755462 mplayer.c --- a/mplayer.c Tue Jun 28 17:01:24 2011 +0000 +++ b/mplayer.c Tue Jun 28 17:23:37 2011 +0000 @@ -3995,8 +3995,8 @@ else if (mpctx->sh_audio) guiInfo.TimeSec = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out); guiInfo.LengthInSec = demuxer_get_time_length(mpctx->demuxer); + guiGetEvent(guiSetVolume, NULL); guiGetEvent(guiReDraw, NULL); - guiGetEvent(guiSetVolume, NULL); if (guiInfo.Playing == GUI_STOP) break; // STOP if (guiInfo.Playing == GUI_PAUSE)