Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

factor out the StackingAvailable code

  • Loading branch information...
commit fcf19317e734dfa11a6a6df33e45dc0aef339d30 1 parent d613807
Jonathan Marshall authored
View
11 xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -1697,9 +1697,7 @@ bool CGUIWindowVideoBase::GetDirectory(const CStdString &strDirectory, CFileItem
items.Add(newPlaylist);
}
- m_stackingAvailable = !(items.IsTuxBox() || items.IsPlugin() ||
- items.IsAddonsPath() || items.IsRSS() ||
- items.IsInternetStream() || items.IsVideoDb());
+ m_stackingAvailable = StackingAvailable(items);
// we may also be in a tvshow files listing
// (ideally this should be removed, and our stack regexps tidied up if necessary
// No "normal" episodes should stack, and multi-parts should be supported)
@@ -1713,6 +1711,13 @@ bool CGUIWindowVideoBase::GetDirectory(const CStdString &strDirectory, CFileItem
return bResult;
}
+bool CGUIWindowVideoBase::StackingAvailable(const CFileItemList &items) const
+{
+ return !(items.IsTuxBox() || items.IsPlugin() ||
+ items.IsAddonsPath() || items.IsRSS() ||
+ items.IsInternetStream() || items.IsVideoDb());
+}
+
void CGUIWindowVideoBase::OnPrepareFileItems(CFileItemList &items)
{
if (!items.GetPath().Equals("plugin://video/"))
View
2  xbmc/video/windows/GUIWindowVideoBase.h
@@ -117,6 +117,8 @@ class CGUIWindowVideoBase : public CGUIMediaWindow, public IBackgroundLoaderObse
static bool OnUnAssignContent(const CStdString &path, int label1, int label2, int label3);
+ bool StackingAvailable(const CFileItemList &items) const;
+
CGUIDialogProgress* m_dlgProgress;
CVideoDatabase m_database;
Please sign in to comment.
Something went wrong with that request. Please try again.