Permalink
Browse files

[pvr/epg] fixed crash when resetting the EPG db

  • Loading branch information...
1 parent 14e9119 commit a8ac7bdbfc65cbb4fe6973ca6fc553227c072379 Lars Op den Kamp committed Oct 19, 2012
Showing with 2 additions and 10 deletions.
  1. +2 −10 xbmc/pvr/PVRManager.cpp
View
@@ -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

0 comments on commit a8ac7bd

Please sign in to comment.