aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2024-03-02 11:35:01 +0000
committerMiguel Borges de Freitas <92enen@gmail.com>2024-03-02 14:52:31 +0000
commitf315d244ef71eac3d10bc9134027f9dd7c0513cf (patch)
treefcf97cdc903ee197cc576cb626435e581205db11
parent36c6d1449858c4d5fa3299af82ae3cf2341b3db3 (diff)
Fix regression for play actions
-rw-r--r--xbmc/video/windows/GUIWindowVideoBase.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/xbmc/video/windows/GUIWindowVideoBase.cpp b/xbmc/video/windows/GUIWindowVideoBase.cpp
index 26a1769790..9a4c2605f6 100644
--- a/xbmc/video/windows/GUIWindowVideoBase.cpp
+++ b/xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -538,15 +538,17 @@ bool CGUIWindowVideoBase::OnSelect(int iItem)
if (iItem < 0 || iItem >= m_vecItems->Size())
return false;
- CFileItemPtr item = m_vecItems->Get(iItem);
+ const std::shared_ptr<CFileItem> item = m_vecItems->Get(iItem);
- std::string path = item->GetPath();
+ const std::string path = item->GetPath();
if (!item->m_bIsFolder && path != "add" &&
- !StringUtils::StartsWith(path, "newsmartplaylist://") &&
- !StringUtils::StartsWith(path, "newplaylist://") &&
- !StringUtils::StartsWith(path, "newtag://") && !StringUtils::StartsWith(path, "script://") &&
- !StringUtils::StartsWith(path, "plugin://") && !item->HasProperty("IsPlayable") &&
- !item->GetProperty("IsPlayable").asBoolean())
+ ((!StringUtils::StartsWith(path, "newsmartplaylist://") &&
+ !StringUtils::StartsWith(path, "newplaylist://") &&
+ !StringUtils::StartsWith(path, "newtag://") &&
+ !StringUtils::StartsWith(path, "script://") &&
+ !StringUtils::StartsWith(path, "plugin://")) ||
+ (StringUtils::StartsWith(path, "plugin://") &&
+ item->GetProperty("IsPlayable").asBoolean(false))))
return OnFileAction(iItem, CVideoSelectActionProcessorBase::GetDefaultSelectAction(), "");
return CGUIMediaWindow::OnSelect(iItem);