mediabunny 1.55.5 → 1.55.7

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.
@@ -7206,10 +7206,9 @@ var Mediabunny = (() => {
7206
7206
  case "esds":
7207
7207
  {
7208
7208
  const track = this.currentTrack;
7209
- if (!track) {
7209
+ if (!track || track.info?.type !== "audio") {
7210
7210
  break;
7211
7211
  }
7212
- assert(track.info?.type === "audio");
7213
7212
  slice.skip(4);
7214
7213
  const tag = readU8(slice);
7215
7214
  assert(tag === 3);
@@ -23737,11 +23736,15 @@ var Mediabunny = (() => {
23737
23736
  async next() {
23738
23737
  while (true) {
23739
23738
  if (track.input._disposed) {
23739
+ terminated = true;
23740
+ ended = true;
23740
23741
  closeSamples();
23741
23742
  throw new InputDisposedError();
23742
23743
  } else if (terminated) {
23743
23744
  return { value: void 0, done: true };
23744
23745
  } else if (hasOutOfBandError) {
23746
+ terminated = true;
23747
+ ended = true;
23745
23748
  closeSamples();
23746
23749
  throw outOfBandError;
23747
23750
  } else if (sampleQueue.length > 0) {
@@ -23905,11 +23908,13 @@ var Mediabunny = (() => {
23905
23908
  async next() {
23906
23909
  while (true) {
23907
23910
  if (track.input._disposed) {
23911
+ terminated = true;
23908
23912
  closeSamples();
23909
23913
  throw new InputDisposedError();
23910
23914
  } else if (terminated) {
23911
23915
  return { value: void 0, done: true };
23912
23916
  } else if (hasOutOfBandError) {
23917
+ terminated = true;
23913
23918
  closeSamples();
23914
23919
  throw outOfBandError;
23915
23920
  } else if (sampleQueue.length > 0) {