Mercurial > mplayer.hg
diff gui/win32/interface.c @ 37151:c63629427fde
Apply skin defaults in Win32 GUI.
The starting defaults for volume, balance and movie position are defined
in the skin used by the GUI. So far, the Win32 GUI has completely ignored
these.
Based on a patch by Stephen Sheldon, sfsheldo gmail com.
author | ib |
---|---|
date | Wed, 06 Aug 2014 16:35:38 +0000 |
parents | 8643426b12de |
children | 3dca2acb98ac |
line wrap: on
line diff
--- a/gui/win32/interface.c Wed Aug 06 13:03:22 2014 +0000 +++ b/gui/win32/interface.c Wed Aug 06 16:35:38 2014 +0000 @@ -537,6 +537,9 @@ /* Wait until the gui is created */ while(!mygui) Sleep(100); mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] GUI thread started.\n"); + + guiInfo.Volume = mygui->default_volume; + guiInfo.Balance = mygui->default_balance; } void guiDone(void) @@ -636,6 +639,8 @@ guiInfo.AudioChannels = 0; guiInfo.AudioPassthrough = FALSE; } + guiSetEvent(evSetVolume); + guiSetEvent(evSetBalance); if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow) ShowWindow(mygui->videowindow, SW_HIDE); break;