diff --git a/src/media-segment-request.js b/src/media-segment-request.js index bc43779fd..fabced1cb 100644 --- a/src/media-segment-request.js +++ b/src/media-segment-request.js @@ -500,7 +500,7 @@ const handleSegmentBytes = ({ // Run through the CaptionParser in case there are captions. // Initialize CaptionParser if it hasn't been yet - if (!tracks.video || !data.byteLength || !segment.transmuxer) { + if (!tracks.video || !emsgData.byteLength || !segment.transmuxer) { finishLoading(undefined, id3Frames); return; }