mediabunny 1.50.4 → 1.50.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17112,7 +17112,7 @@ var Mediabunny = (() => {
17112
17112
  throw error;
17113
17113
  }
17114
17114
  }).finally(() => {
17115
- if (worker.running || this.workers.length >= this.options.maxWorkerCount) {
17115
+ if (worker.running) {
17116
17116
  return;
17117
17117
  }
17118
17118
  if (this.queuedReads.length > 0) {
@@ -17124,13 +17124,15 @@ var Mediabunny = (() => {
17124
17124
  }
17125
17125
  }
17126
17126
  const queuedRead = this.queuedReads[oldestIndex];
17127
- this.queuedReads.splice(oldestIndex, 1);
17128
17127
  const newWorker = this.createWorker(
17129
17128
  queuedRead.hole.start,
17130
17129
  queuedRead.hole.end,
17131
17130
  queuedRead.strictTarget
17132
17131
  );
17133
- assert(newWorker);
17132
+ if (!newWorker) {
17133
+ return;
17134
+ }
17135
+ this.queuedReads.splice(oldestIndex, 1);
17134
17136
  newWorker.pendingSlices = queuedRead.pendingSlices;
17135
17137
  this.runWorker(newWorker);
17136
17138
  }
@@ -24089,7 +24091,7 @@ var Mediabunny = (() => {
24089
24091
  return requireSync(this._backing.getCodec(), "codec", "getCodec");
24090
24092
  }
24091
24093
  async hasOnlyKeyPackets() {
24092
- return await this._backing.getHasOnlyKeyPackets?.() ?? false;
24094
+ return await this._backing.getHasOnlyKeyPackets?.() ?? await this._backing.getCodec() === "prores";
24093
24095
  }
24094
24096
  /** Returns the width in pixels of the track's coded samples, before any transformations or rotations. */
24095
24097
  async getCodedWidth() {