Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
pvr: reset the pvr windows before the initial sync finished. fixes me…
Browse files Browse the repository at this point in the history
…ssed up window after a pvr db reset
  • Loading branch information
opdenkamp committed Jul 25, 2012
1 parent b2ce64b commit d46f0b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xbmc/pvr/PVRManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ bool CPVRManager::Load(void)

CLog::Log(LOGDEBUG, "PVRManager - %s - active clients found. continue to start", __FUNCTION__);

CGUIWindowPVR *pWindow = (CGUIWindowPVR *) g_windowManager.GetWindow(WINDOW_PVR);
if (pWindow)
pWindow->Reset();

/* load all channels and groups */
ShowProgressDialog(g_localizeStrings.Get(19236), 0);
if (!m_channelGroups->Load() || GetState() != ManagerStateStarting)
Expand All @@ -313,10 +317,6 @@ bool CPVRManager::Load(void)
if (GetState() != ManagerStateStarting)
return false;

CGUIWindowPVR *pWindow = (CGUIWindowPVR *) g_windowManager.GetWindow(WINDOW_PVR);
if (pWindow)
pWindow->Reset();

/* start the other pvr related update threads */
ShowProgressDialog(g_localizeStrings.Get(19239), 85);
m_guiInfo->Start();
Expand Down

0 comments on commit d46f0b6

Please sign in to comment.