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

Fixing ID3 Frame Error When Receiving EventMessage in TimedMetadata #1941

Merged

Conversation

raymallick
Copy link

Describe the changes

On certain video streams, it is possible to receive an EventMessage instead of an ID3Frame. Thus the line Id3Frame frame = (Id3Frame) metadata.get(i); would cause a fatal Java Error. We are now funneling the logic into two branches when receiving an ID3 Frame or an EventMessage.

Update the changelog

After you open the PR, update the CHANGELOG.md file with an entry pointing to your PR.

Provide an example of how to test the change

If the PR requires special testing setup provide all the relevant instructions and files. This may include a sample video file or URL, configuration, or setup steps.

@raymallick
Copy link
Author

@cobarx I can remove the else-if check if we do not want to map the EventMessage and we only care about ID3Frames.

@cobarx
Copy link
Contributor

cobarx commented Mar 6, 2020

@raymallick I like the approach you've taken, emitting as much info as possible is ideal.

@cobarx cobarx self-requested a review March 12, 2020 01:31
Copy link
Contributor

@cobarx cobarx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and verified working

@cobarx cobarx merged commit c183668 into TheWidlarzGroup:dev-4.x Mar 12, 2020
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.

2 participants