fix: Enable GUI Rendering earlier in order to avoid possible headless startup
authorCory Fields <theuni-nospam-@xbmc.org>
Fri, 9 Nov 2012 00:34:07 +0000 (19:34 -0500)
committerCory Fields <theuni-nospam-@xbmc.org>
Fri, 9 Nov 2012 00:40:47 +0000 (19:40 -0500)
Fixes #13470

xbmc/Application.cpp
xbmc/XBApplicationEx.cpp
xbmc/XBApplicationEx.h
xbmc/xbmc.cpp

index 0e21401..0e6c128 100644 (file)
@@ -773,6 +773,7 @@ bool CApplication::Create()
 
 bool CApplication::CreateGUI()
 {
+  m_renderGUI = true;
 #ifdef HAS_SDL
   CLog::Log(LOGNOTICE, "Setup SDL");
 
index 47b600b..93c4b67 100644 (file)
@@ -41,6 +41,7 @@ CXBApplicationEx::CXBApplicationEx()
   m_AppActive = true;
   m_AppFocused = true;
   m_ExitCode = EXITCODE_QUIT;
+  m_renderGUI = false;
 }
 
 CXBApplicationEx::~CXBApplicationEx()
@@ -75,14 +76,13 @@ VOID CXBApplicationEx::Destroy()
 }
 
 /* Function that runs the application */
-INT CXBApplicationEx::Run(bool renderGUI)
+INT CXBApplicationEx::Run()
 {
   CLog::Log(LOGNOTICE, "Running the application..." );
 
   unsigned int lastFrameTime = 0;
   unsigned int frameTime = 0;
   const unsigned int noRenderFrameTime = 15;  // Simulates ~66fps
-  m_renderGUI = renderGUI;
 
 #ifdef XBMC_TRACK_EXCEPTIONS
   BYTE processExceptionCount = 0;
index c8ef77c..ff0be99 100644 (file)
@@ -52,7 +52,7 @@ public:
 public:
   // Functions to create, run, and clean up the application
   virtual bool Create();
-  INT Run(bool renderGUI = true);
+  INT Run();
   VOID Destroy();
 
 private:
index 111c980..fdedc37 100644 (file)
@@ -66,7 +66,7 @@ extern "C" int XBMC_Run(bool renderGUI)
 
   try
   {
-    status = g_application.Run(renderGUI);
+    status = g_application.Run();
   }
   catch(...)
   {