Skip to content

Commit 1528eef

Browse files
gkatsevavelad
authored andcommitted
fix: log prefetch miss for missing segments (#6012)
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
1 parent a75f6bc commit 1528eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/media/segment_prefetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ shaka.media.SegmentPrefetch = class {
165165
if (reference instanceof shaka.media.SegmentReference) {
166166
shaka.log.debug(
167167
logPrefix,
168-
'reused prefetched segment at time:', reference.startTime,
168+
'missed segment at time:', reference.startTime,
169169
'mapSize', this.segmentPrefetchMap_.size);
170170
} else {
171171
shaka.log.debug(
172172
logPrefix,
173-
'reused prefetched init segment at time, mapSize',
173+
'missed init segment at time, mapSize',
174174
this.segmentPrefetchMap_.size);
175175
}
176176
return null;

0 commit comments

Comments
 (0)