Skip to content

Commit

Permalink
fix: fmp4 captions regression (#1434)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 authored and Dzianis Dashkevich committed Nov 30, 2023
1 parent 0c41ec2 commit 3448c0f
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 @@ -509,7 +509,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 3448c0f

Please sign in to comment.