Skip to content

Commit

Permalink
fix: fmp4 captions regression (videojs#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Oct 12, 2023
1 parent 53edf72 commit fcd2e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media-segment-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fcd2e8a

Please sign in to comment.