Skip to content

Commit

Permalink
[pvr/epg] fixed crash when resetting the EPG db
Browse files Browse the repository at this point in the history
  • Loading branch information
opdenkamp committed Oct 19, 2012
1 parent 14e9119 commit a8ac7bd
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions xbmc/pvr/PVRManager.cpp
Expand Up @@ -556,17 +556,9 @@ void CPVRManager::ResetEPG(void)
{
CLog::Log(LOGNOTICE,"PVRManager - %s - clearing the EPG database", __FUNCTION__);

StopUpdateThreads();
g_EpgContainer.Stop();
Stop();
g_EpgContainer.Reset();

if (g_guiSettings.GetBool("pvrmanager.enabled"))
{
static_cast<CPVRChannelGroupInternal *>(m_channelGroups->GetGroupAllTV().get())->CreateChannelEpgs(true);
static_cast<CPVRChannelGroupInternal *>(m_channelGroups->GetGroupAllRadio().get())->CreateChannelEpgs(true);
g_EpgContainer.Start();
StartUpdateThreads();
}
Start();
}

bool CPVRManager::IsPlaying(void) const
Expand Down

0 comments on commit a8ac7bd

Please sign in to comment.