Skip to content

Commit

Permalink
Merge pull request #396 from dofuuz/items_fix
Browse files Browse the repository at this point in the history
Fix problem that every instance shares same items list
  • Loading branch information
DenizUgur authored Nov 1, 2024
2 parents 0954407 + c95e35c commit 31693fb
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 31693fb

Please sign in to comment.