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

Require FormatReader and Decoder to be Send #31

Merged
merged 2 commits into from
Jun 10, 2021
Merged

Conversation

aschey
Copy link
Contributor

@aschey aschey commented Jun 9, 2021

Resolves #24

Similar to #25, but this also requires FormatReader and Decoder to be Send. The requirements for the other traits to be Send are all downstream effects of this. Per #24 (comment), I need to keep a reference to the format reader and the decoder in a struct in order to keep playing the stream. The only other change here is switching an Rc to an Arc.

Copy link
Owner

@pdeljanov pdeljanov left a comment

Choose a reason for hiding this comment

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

I think MetadataReader should be Send as well even though the use-case is more limited.

@aschey
Copy link
Contributor Author

aschey commented Jun 10, 2021

I think MetadataReader should be Send as well even though the use-case is more limited.

Makes sense, just pushed that change as well.

@aschey aschey requested a review from pdeljanov June 10, 2021 02:23
@pdeljanov pdeljanov merged commit d1f9863 into pdeljanov:master Jun 10, 2021
@aschey aschey deleted the send branch June 10, 2021 02:27
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.

MediaSourceStream is not Send
2 participants