aboutsummaryrefslogtreecommitdiff
path: root/xbmc/video/guilib/VideoGUIUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/video/guilib/VideoGUIUtils.cpp')
-rw-r--r--xbmc/video/guilib/VideoGUIUtils.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/video/guilib/VideoGUIUtils.cpp b/xbmc/video/guilib/VideoGUIUtils.cpp
index 76eeb807d5..9cd5487828 100644
--- a/xbmc/video/guilib/VideoGUIUtils.cpp
+++ b/xbmc/video/guilib/VideoGUIUtils.cpp
@@ -9,6 +9,7 @@
#include "VideoGUIUtils.h"
#include "FileItem.h"
+#include "FileItemList.h"
#include "GUIPassword.h"
#include "PartyModeManager.h"
#include "PlayListPlayer.h"
@@ -200,7 +201,7 @@ void CAsyncGetItemsForPlaylist::GetItemsForPlaylist(const std::shared_ptr<CFileI
items.Sort(sortDesc);
}
- if (items.GetContent().empty() && !items.IsVideoDb() && !items.IsVirtualDirectoryRoot() &&
+ if (items.GetContent().empty() && !IsVideoDb(items) && !items.IsVirtualDirectoryRoot() &&
!items.IsSourcesPath() && !items.IsLibraryFolder())
{
CVideoDatabase db;
@@ -302,7 +303,7 @@ void CAsyncGetItemsForPlaylist::GetItemsForPlaylist(const std::shared_ptr<CFileI
// a playable python files
m_queuedItems.Add(item);
}
- else if (item->IsVideoDb())
+ else if (IsVideoDb(*item))
{
// this case is needed unless we allow IsVideo() to return true for videodb items,
// but then we have issues with playlists of videodb items
@@ -556,7 +557,7 @@ bool IsItemPlayable(const CFileItem& item)
return false;
if (item.m_bIsFolder &&
- (item.IsVideoDb() || StringUtils::StartsWithNoCase(item.GetPath(), "library://video/")))
+ (IsVideoDb(item) || StringUtils::StartsWithNoCase(item.GetPath(), "library://video/")))
{
// Exclude top level nodes - eg can't play 'genres' just a specific genre etc
const XFILE::VIDEODATABASEDIRECTORY::NODE_TYPE node =