Skip to content

Commit

Permalink
[rpi] Protect against null GetGUI
Browse files Browse the repository at this point in the history
Kodi crashes on startup when trying to display the splash screen as GetGUI is null.
Protect against that
  • Loading branch information
popcornmix committed Apr 3, 2018
1 parent 70e1558 commit 5417acd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/windowing/rpi/WinSystemRpiGLESContext.cpp
Expand Up @@ -147,7 +147,9 @@ void CWinSystemRpiGLESContext::SetVSyncImpl(bool enable)

void CWinSystemRpiGLESContext::PresentRenderImpl(bool rendered)
{
CWinSystemRpi::SetVisible(CServiceBroker::GetGUI()->GetWindowManager().HasVisibleControls() || g_application.GetAppPlayer().IsRenderingGuiLayer());
CGUIComponent *gui = CServiceBroker::GetGUI();
if (gui)
CWinSystemRpi::SetVisible(gui->GetWindowManager().HasVisibleControls() || g_application.GetAppPlayer().IsRenderingGuiLayer());

if (m_delayDispReset && m_dispResetTimer.IsTimePast())
{
Expand Down

0 comments on commit 5417acd

Please sign in to comment.