Mercurial > mplayer.hg
diff gui/win32/interface.c @ 37096:8643426b12de
Simplify code.
Move !guiInfo.sh_video condition to existing if (sh_audio) statement.
author | ib |
---|---|
date | Thu, 08 May 2014 09:15:32 +0000 |
parents | 09c3f76bc780 |
children | c63629427fde |
line wrap: on
line diff
--- a/gui/win32/interface.c Wed May 07 14:16:02 2014 +0000 +++ b/gui/win32/interface.c Thu May 08 09:15:32 2014 +0000 @@ -628,13 +628,14 @@ { guiInfo.AudioChannels = sh_audio->channels; guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0); + + if (!guiInfo.sh_video) guiInfo.VideoWindow = FALSE; } else { guiInfo.AudioChannels = 0; guiInfo.AudioPassthrough = FALSE; } - if (sh_audio && !guiInfo.sh_video) guiInfo.VideoWindow = FALSE; if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow) ShowWindow(mygui->videowindow, SW_HIDE); break;