diff options
author | Sam Stenvall <neggelandia@gmail.com> | 2014-12-30 21:26:04 +0200 |
---|---|---|
committer | Sam Stenvall <neggelandia@gmail.com> | 2014-12-30 21:26:49 +0200 |
commit | 3657b9e753d98bf9630d4ffe53841227fc34e87d (patch) | |
tree | 6410ed9020e7a9ed7267976214fb29f151e6f973 | |
parent | e8b707af7f4a1f2564c4d9f4cb857c7da0fa9066 (diff) |
[pvr] don't attempt to count the number of recordings unless the PVR
manager is started. Fixes #15591
-rw-r--r-- | xbmc/filesystem/PVRDirectory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/filesystem/PVRDirectory.cpp b/xbmc/filesystem/PVRDirectory.cpp index 29f7693698..7680f58fba 100644 --- a/xbmc/filesystem/PVRDirectory.cpp +++ b/xbmc/filesystem/PVRDirectory.cpp @@ -118,5 +118,6 @@ bool CPVRDirectory::IsLiveTV(const std::string& strPath) bool CPVRDirectory::HasRecordings() { - return g_PVRRecordings->GetNumRecordings() > 0; + return g_PVRManager.IsStarted() ? + g_PVRRecordings->GetNumRecordings() > 0 : false; } |