aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhonest-mule <github.okay698@passinbox.com>2023-09-17 17:41:36 +0530
committerhonest-mule <github.okay698@passinbox.com>2023-09-17 17:41:36 +0530
commit7192b68f747ee8809a48699b0f7e0978f88fe4a7 (patch)
treea14f4c6b99b46fe4b07164456ba291c016ee7fb1
parenta4f66924c3c5ddf6fcd0e0038020ff94cffbd213 (diff)
[VideoPlayer] Fixed: Infinite video halt when cache is full & valid
-rw-r--r--xbmc/cores/VideoPlayer/VideoPlayer.cpp5
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