Skip to content

Commit

Permalink
StreamProcessor: update DVR info metrics also if SEGMENTS_UPDATE_FAIL…
Browse files Browse the repository at this point in the history
…ED_ERROR_CODE
  • Loading branch information
Bertrand Berthelot committed Jun 29, 2020
1 parent 6b772c4 commit 6689278
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/streaming/StreamProcessor.js
Expand Up @@ -233,7 +233,9 @@ function StreamProcessor(config) {

if (!e.error) {
scheduleController.setCurrentRepresentation(adapter.convertDataToRepresentationInfo(e.currentRepresentation));
} else if (e.error.code !== Errors.SEGMENTS_UPDATE_FAILED_ERROR_CODE) {
}
if (!e.error || e.error.code === Errors.SEGMENTS_UPDATE_FAILED_ERROR_CODE) {
// Update has been postponed, we nevertheless update DVR info
addDVRMetric();
}
}
Expand Down

0 comments on commit 6689278

Please sign in to comment.