Skip to content

Commit

Permalink
TsDemuxer: extractRemainingSamples only when flush is true
Browse files Browse the repository at this point in the history
  • Loading branch information
softworkz committed Apr 10, 2021
1 parent b313b01 commit 96fb735
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/demux/tsdemuxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,11 @@ class TSDemuxer implements Demuxer {
id3Track,
textTrack: this._txtTrack,
};
this.extractRemainingSamples(demuxResult);

if (flush) {
this.extractRemainingSamples(demuxResult);
}

return demuxResult;
}

Expand Down

0 comments on commit 96fb735

Please sign in to comment.