diff options
author | honest-mule <github.okay698@passinbox.com> | 2023-09-17 17:41:36 +0530 |
---|---|---|
committer | honest-mule <github.okay698@passinbox.com> | 2023-09-17 17:41:36 +0530 |
commit | 7192b68f747ee8809a48699b0f7e0978f88fe4a7 (patch) | |
tree | a14f4c6b99b46fe4b07164456ba291c016ee7fb1 | |
parent | a4f66924c3c5ddf6fcd0e0038020ff94cffbd213 (diff) |
[VideoPlayer] Fixed: Infinite video halt when cache is full & valid
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoPlayer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoPlayer.cpp b/xbmc/cores/VideoPlayer/VideoPlayer.cpp index 72419823d8..c4590feca7 100644 --- a/xbmc/cores/VideoPlayer/VideoPlayer.cpp +++ b/xbmc/cores/VideoPlayer/VideoPlayer.cpp @@ -1871,7 +1871,10 @@ void CVideoPlayer::HandlePlaySpeed() CGUIDialogKaiToast::QueueNotification(g_localizeStrings.Get(21454), g_localizeStrings.Get(21455)); SetCaching(CACHESTATE_INIT); } - if (cache.level >= 1.0) + // Note: Previously used cache.level >= 1 would keep video stalled + // event after cache was full + // Talk link: https://github.com/xbmc/xbmc/pull/23760 + if (cache.time > 8.0) SetCaching(CACHESTATE_INIT); } else |