From 0c39a04c2fc332e980a58740cae4d7584c6a68c1 Mon Sep 17 00:00:00 2001 From: Dzianis Dashkevich Date: Tue, 28 Nov 2023 13:44:10 -0500 Subject: [PATCH] fix: check for transmuxer for vtt-segment-loader --- src/segment-loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/segment-loader.js b/src/segment-loader.js index 172188aa2..41ab8d035 100644 --- a/src/segment-loader.js +++ b/src/segment-loader.js @@ -2478,7 +2478,7 @@ export default class SegmentLoader extends videojs.EventTarget { // // Even though keepOriginalTimestamps is set to true for the transmuxer, timestamp // offset must be passed to the transmuxer for stream correcting adjustments. - if (this.shouldUpdateTransmuxerTimestampOffset_(segmentInfo)) { + if (this.transmuxer_ && this.shouldUpdateTransmuxerTimestampOffset_(segmentInfo)) { this.gopBuffer_.length = 0; // gopsToAlignWith was set before the GOP buffer was cleared segmentInfo.gopsToAlignWith = [];