From 6689278f59391eaf44433ee90f6ed99939cf32e6 Mon Sep 17 00:00:00 2001 From: Bertrand Berthelot Date: Mon, 29 Jun 2020 16:19:44 +0200 Subject: [PATCH] StreamProcessor: update DVR info metrics also if SEGMENTS_UPDATE_FAILED_ERROR_CODE --- src/streaming/StreamProcessor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/streaming/StreamProcessor.js b/src/streaming/StreamProcessor.js index 75317c1a57..2561e87db8 100644 --- a/src/streaming/StreamProcessor.js +++ b/src/streaming/StreamProcessor.js @@ -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(); } }