Skip to content

Commit

Permalink
fix: log prefetch miss for missing segments (#6012)
Browse files Browse the repository at this point in the history
A recent change made it always log that segments were re-used, but in
reality there were times when they were missed. Uses the language from
the original PR
  • Loading branch information
gkatsev authored and avelad committed Jan 8, 2024
1 parent 47ae494 commit ec59d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/media/segment_prefetch.js
Expand Up @@ -165,12 +165,12 @@ shaka.media.SegmentPrefetch = class {
if (reference instanceof shaka.media.SegmentReference) {
shaka.log.debug(
logPrefix,
'reused prefetched segment at time:', reference.startTime,
'missed segment at time:', reference.startTime,
'mapSize', this.segmentPrefetchMap_.size);
} else {
shaka.log.debug(
logPrefix,
'reused prefetched init segment at time, mapSize',
'missed init segment at time, mapSize',
this.segmentPrefetchMap_.size);
}
return null;
Expand Down

0 comments on commit ec59d3b

Please sign in to comment.