Skip to content

Commit

Permalink
Change "CC" and "continuity counter" to "cc" in log messages for cons…
Browse files Browse the repository at this point in the history
…istency
  • Loading branch information
Rob Walch committed Jul 24, 2020
1 parent dd89cde commit 0b4c12f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controller/audio-stream-controller.js
Expand Up @@ -306,13 +306,13 @@ class AudioStreamController extends BaseStreamController {
this.state = State.FRAG_LOADING;
this.onFragLoaded(waitingFrag);
} else if (!this.fragPrevious) {
logger.warn(`Waiting fragment CC (${waitingFragCC}) cancelled because of continuity change`);
logger.warn(`Waiting fragment cc (${waitingFragCC}) cancelled because of continuity change`);
this.clearWaitingFragment();
} else {
const bufferInfo = BufferHelper.bufferInfo(this.mediaBuffer, this.media.currentTime, config.maxBufferHole);
const waitingFragmentAtPosition = fragmentWithinToleranceTest(bufferInfo.end, config.maxFragLookUpTolerance, waitingFrag.frag);
if (waitingFragmentAtPosition !== 0) {
logger.warn(`Waiting fragment CC (${waitingFragCC}) @ ${waitingFrag.frag.start} cancelled because another fragment at ${bufferInfo.end} is needed`);
logger.warn(`Waiting fragment cc (${waitingFragCC}) @ ${waitingFrag.frag.start} cancelled because another fragment at ${bufferInfo.end} is needed`);
this.clearWaitingFragment();
}
}
Expand Down Expand Up @@ -514,7 +514,7 @@ class AudioStreamController extends BaseStreamController {
let accurateTimeOffset = false; // details.PTSKnown || !details.live;
this.demuxer.push(data.payload, initSegmentData, audioCodec, null, fragCurrent, duration, accurateTimeOffset, initPTS);
} else {
logger.log(`unknown video PTS for continuity counter ${cc}, waiting for video PTS before demuxing audio frag ${sn} of [${details.startSN} ,${details.endSN}],track ${trackId}`);
logger.log(`Unknown video PTS for cc ${cc}, waiting for video PTS before demuxing audio frag ${sn} of [${details.startSN} ,${details.endSN}],track ${trackId}`);
this.waitingFragment = data;
this.state = State.WAITING_INIT_PTS;
}
Expand Down

0 comments on commit 0b4c12f

Please sign in to comment.