Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TSDemuxer parsing error handling in sync path #6469

Merged
merged 3 commits into from
May 31, 2024

Conversation

robwalch
Copy link
Collaborator

This PR will...

  • Emit FRAG_PARSING_ERROR rather than throw in TSDemuxer
  • Add type safety to worker message handling
  • Warn with error message when available

Why is this Pull Request needed?

Throwing in transmuxers was handled correctly in worker and async (WebCrypto Promise wrapped) execution paths, but not in sync paths (transmuxer-interface handleTransmuxComplete, handleFlushResult).

Are there any points in the code the reviewer needs to double check?

This is only an issue when delivering codecs unsupported in TS.

Resolves issues:

Resolves #6445

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.5.10 milestone May 31, 2024
@robwalch robwalch merged commit adf87aa into patch/v1.5.x May 31, 2024
13 of 14 checks passed
@robwalch robwalch deleted the bugfix/tsdemuxer-parse-errors branch May 31, 2024 21:54
robwalch added a commit that referenced this pull request Jun 1, 2024
* patch/v1.5.x:
  Don't append over first fragment when next fragment aligns with playlist within 1/200s tolerance (#6471)
  Fix exception reading metadata.channelCount with HE-AAC when changeType is not supported (#6472)
  Fix TSDemuxer parsing error handling in sync path (#6469)
  when `this.stats` is called, add optional chaining or check for existence (#6459)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant