Skip to content

Commit

Permalink
Merge pull request xbmc#23760 from honest-mule/fix_infinite_video_sta…
Browse files Browse the repository at this point in the history
…ll_when_cache_full

[VideoPlayer] Fixed: Infinite video halt when cache is full & valid
  • Loading branch information
thexai authored Sep 18, 2023
2 parents a4f6692 + 7192b68 commit 1e499e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xbmc/cores/VideoPlayer/VideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e499e0

Please sign in to comment.