Skip to content

Commit

Permalink
Fix problem that every instance shares same items list
Browse files Browse the repository at this point in the history
  • Loading branch information
dofuuz committed Apr 26, 2024
1 parent fbc0348 commit c95e35c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/isofile-item-processing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
ISOFile.prototype.items = [];
ISOFile.prototype.entity_groups = [];
/* size of the buffers allocated for samples */
ISOFile.prototype.itemsDataSize = 0;

Expand Down
4 changes: 4 additions & 0 deletions src/isofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ var ISOFile = function (stream) {
this.nextMoofNumber = 0;
/* Boolean indicating if the initial list of items has been produced */
this.itemListBuilt = false;
/* Array of items */
this.items = [];
/* Array of entity groups */
this.entity_groups = [];
/* Callback called when the sidx box is entirely parsed */
this.onSidx = null;
/* Boolean keeping track of the call to onSidx, to avoid double calls */
Expand Down

0 comments on commit c95e35c

Please sign in to comment.