aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksooo <3226626+ksooo@users.noreply.github.com>2023-11-30 07:11:22 +0100
committerksooo <3226626+ksooo@users.noreply.github.com>2023-12-07 19:07:48 +0100
commit5fdcecac8f5a2c30ce156714738345875ffe21be (patch)
tree478476631d74ba40229ca61800d108dc458cabda
parent565fe8a525d26be43ea082221f7a4472dbcf862a (diff)
[video] If a video has multiple versions and 'Play default video version' setting is off, display video version selector for all play/select actions, not only for 'Play'/'Play from beginning'.
-rw-r--r--xbmc/video/guilib/VideoPlayActionProcessor.cpp3
-rw-r--r--xbmc/video/guilib/VideoSelectActionProcessor.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/xbmc/video/guilib/VideoPlayActionProcessor.cpp b/xbmc/video/guilib/VideoPlayActionProcessor.cpp
index 123bdb1985..7d508dca82 100644
--- a/xbmc/video/guilib/VideoPlayActionProcessor.cpp
+++ b/xbmc/video/guilib/VideoPlayActionProcessor.cpp
@@ -37,8 +37,7 @@ bool CVideoPlayActionProcessorBase::Process(PlayAction playAction)
CVideoActionProcessorHelper procHelper{m_item, m_videoVersion};
- if (!m_versionChecked &&
- (playAction == PLAY_ACTION_PLAY_FROM_BEGINNING || playAction == PLAY_ACTION_PLAY_OR_RESUME))
+ if (!m_versionChecked)
{
m_versionChecked = true;
const auto videoVersion{procHelper.ChooseVideoVersion()};
diff --git a/xbmc/video/guilib/VideoSelectActionProcessor.cpp b/xbmc/video/guilib/VideoSelectActionProcessor.cpp
index 6ff489c580..15fd6e5e4d 100644
--- a/xbmc/video/guilib/VideoSelectActionProcessor.cpp
+++ b/xbmc/video/guilib/VideoSelectActionProcessor.cpp
@@ -41,8 +41,7 @@ bool CVideoSelectActionProcessorBase::Process(SelectAction selectAction)
{
CVideoActionProcessorHelper procHelper{m_item, m_videoVersion};
- if (!m_versionChecked &&
- (selectAction == SELECT_ACTION_PLAY || selectAction == SELECT_ACTION_PLAY_OR_RESUME))
+ if (!m_versionChecked)
{
m_versionChecked = true;
const auto videoVersion{procHelper.ChooseVideoVersion()};