Skip to content

Commit

Permalink
fix: check for transmuxer for vtt-segment-loader (#1452)
Browse files Browse the repository at this point in the history
Co-authored-by: Dzianis Dashkevich <[email protected]>
dzianis-dashkevich and Dzianis Dashkevich authored Nov 28, 2023
1 parent 3bbc6ef commit b4dd748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segment-loader.js
Original file line number Diff line number Diff line change
@@ -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 = [];

0 comments on commit b4dd748

Please sign in to comment.