Skip to content

Commit

Permalink
FIX: Wait for window before starting GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Jan 26, 2018
1 parent f4d94fd commit 5e7bfa4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2620,6 +2620,11 @@ void CApplication::OnApplicationMessage(ThreadMessage* pMsg)
case TMSG_DISPLAY_INIT:
if (m_renderGUI)
break;

// Wait for main window
if (!*CXBMCApp::GetNativeWindow(30000))
break;

CreateGUI();
if (!g_application.IsGUIInitialized())
StartGUI();
Expand Down

0 comments on commit 5e7bfa4

Please sign in to comment.