comparison 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
comparison
equal deleted inserted replaced
37095:6cce7a87e800 37096:8643426b12de
626 sh_audio = data; 626 sh_audio = data;
627 if (sh_audio) 627 if (sh_audio)
628 { 628 {
629 guiInfo.AudioChannels = sh_audio->channels; 629 guiInfo.AudioChannels = sh_audio->channels;
630 guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0); 630 guiInfo.AudioPassthrough = (gstrcmp(sh_audio->ad_driver->info->short_name, "hwac3") == 0);
631
632 if (!guiInfo.sh_video) guiInfo.VideoWindow = FALSE;
631 } 633 }
632 else 634 else
633 { 635 {
634 guiInfo.AudioChannels = 0; 636 guiInfo.AudioChannels = 0;
635 guiInfo.AudioPassthrough = FALSE; 637 guiInfo.AudioPassthrough = FALSE;
636 } 638 }
637 if (sh_audio && !guiInfo.sh_video) guiInfo.VideoWindow = FALSE;
638 if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow) 639 if(IsWindowVisible(mygui->videowindow) && !guiInfo.VideoWindow)
639 ShowWindow(mygui->videowindow, SW_HIDE); 640 ShowWindow(mygui->videowindow, SW_HIDE);
640 break; 641 break;
641 } 642 }
642 case GUI_SET_CONTEXT: 643 case GUI_SET_CONTEXT: