Skip to content

Commit

Permalink
Change 'negative duration computed' log message level from 'error' to…
Browse files Browse the repository at this point in the history
… 'warn'
  • Loading branch information
colejona committed Oct 14, 2016
1 parent 979cde6 commit 879d171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/level-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ class LevelHelper {
if (toIdx > fromIdx) {
fragFrom.duration = fragToPTS-fragFrom.start;
if(fragFrom.duration < 0) {
logger.error(`negative duration computed for frag ${fragFrom.sn},level ${fragFrom.level}, there should be some duration drift between playlist and fragment!`);
logger.warn(`negative duration computed for frag ${fragFrom.sn},level ${fragFrom.level}, there should be some duration drift between playlist and fragment!`);
}
} else {
fragTo.duration = fragFrom.start - fragToPTS;
if(fragTo.duration < 0) {
logger.error(`negative duration computed for frag ${fragTo.sn},level ${fragTo.level}, there should be some duration drift between playlist and fragment!`);
logger.warn(`negative duration computed for frag ${fragTo.sn},level ${fragTo.level}, there should be some duration drift between playlist and fragment!`);
}
}
} else {
Expand Down

0 comments on commit 879d171

Please sign in to comment.