Skip to content

Commit

Permalink
Fix decipherability freeze condition
Browse files Browse the repository at this point in the history
  • Loading branch information
peaBerberian committed Dec 18, 2024
1 parent b689aa9 commit be34d40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/main/common/FreezeResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ export default class FreezeResolver {

const hasDecipherabilityFreezePotential =
(rebufferingForTooLong || frozenForTooLong) &&
((bufferGap < 6 && !fullyLoaded) || readyState > 1);
(bufferGap >= 6 || fullyLoaded) &&
readyState <= 1;

if (!hasDecipherabilityFreezePotential) {
this._decipherabilityFreezeStartingTimestamp = null;
Expand Down

0 comments on commit be34d40

Please sign in to comment.