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

Error handling #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Error handling #11

wants to merge 1 commit into from

Conversation

Arcus92
Copy link
Owner

@Arcus92 Arcus92 commented Jul 17, 2024

This PR adds error handing to the internal worker renderer. If there are any parsing errors when reading the subtitle stream, the renderer should not crash and continue to work. At least with the currently obtained data.

This catches:

  • Invalid magic numbers (non PGS files)
  • HTTP errors
  • Unexpected end of streams
  • Unknown PGS segments

@Arcus92 Arcus92 self-assigned this Jul 17, 2024
@Arcus92 Arcus92 linked an issue Jul 17, 2024 that may be closed by this pull request
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.

Error thrown for unsupported segment type
1 participant