aboutsummaryrefslogtreecommitdiff
path: root/xbmc/PlayListPlayer.cpp
diff options
context:
space:
mode:
author78andyp <drandypowell@live.co.uk>2024-04-26 14:43:37 +0100
committer78andyp <drandypowell@live.co.uk>2024-04-26 14:43:37 +0100
commit54a63d02f1e63ebad0cd99dc06ca070c91ceb93c (patch)
treee4b0eb6225aa1cc99a8c5dcf1c721137d8047fad /xbmc/PlayListPlayer.cpp
parenta5fb12b4637c62a47a59fcc50f2c88246e9d6fff (diff)
downloadxbmc-54a63d02f1e63ebad0cd99dc06ca070c91ceb93c.tar.xz
[Video] Improve user experience when playing movies/episodes from Bluray ISO/BDMV.
Diffstat (limited to 'xbmc/PlayListPlayer.cpp')
-rw-r--r--xbmc/PlayListPlayer.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/xbmc/PlayListPlayer.cpp b/xbmc/PlayListPlayer.cpp
index feaa7f4fb4..23185d2d42 100644
--- a/xbmc/PlayListPlayer.cpp
+++ b/xbmc/PlayListPlayer.cpp
@@ -266,7 +266,9 @@ bool CPlayListPlayer::PlayItemIdx(int itemIdx)
return Play();
}
-bool CPlayListPlayer::Play(const CFileItemPtr& pItem, const std::string& player)
+bool CPlayListPlayer::Play(const CFileItemPtr& pItem,
+ const std::string& player,
+ bool forceSelection /* = false */)
{
Id playlistId;
bool isVideo{IsVideo(*pItem)};
@@ -304,13 +306,14 @@ bool CPlayListPlayer::Play(const CFileItemPtr& pItem, const std::string& player)
SetCurrentPlaylist(playlistId);
Add(playlistId, pItem);
- return Play(0, player);
+ return Play(0, player, false, false, forceSelection);
}
bool CPlayListPlayer::Play(int iSong,
const std::string& player,
bool bAutoPlay /* = false */,
- bool bPlayPrevious /* = false */)
+ bool bPlayPrevious /* = false */,
+ bool forceSelection /* = false */)
{
if (m_iCurrentPlayList == TYPE_NONE)
return false;
@@ -342,7 +345,7 @@ bool CPlayListPlayer::Play(int iSong,
m_bPlaybackStarted = false;
const auto playAttempt = std::chrono::steady_clock::now();
- bool ret = g_application.PlayFile(*item, player, bAutoPlay);
+ bool ret = g_application.PlayFile(*item, player, bAutoPlay, forceSelection);
if (!ret)
{
CLog::Log(LOGERROR, "Playlist Player: skipping unplayable item: {}, path [{}]", m_iCurrentSong,