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

stream list alternative #632

Closed
wants to merge 13 commits into from
Closed

Conversation

pabuhler
Copy link
Member

@pabuhler pabuhler commented Jan 8, 2023

An alternative / modification to #612 .

This PR is just for preliminary review, will merge in to #612 if ok.

mildsunrise and others added 12 commits September 6, 2022 02:43
to make it work with the generalized interface,
instead of removing only the matching streams and then
merging both lists, we remove & add every stream.

the old stream is then deallocated and replaced by the
newly produced one
custom implementations need to have it available
removes code duplication as well
Beside some small API rename the main difference is that the
list implementation is not responsible for deallocating streams.
Calling srtp_stream_list_dealloc() on a list that is not empty
results in an error.

This also changes the default implementation to be a double linked
list making removing items faster.
This does it in a cross platform manor.
@pabuhler
Copy link
Member Author

relevant changes have been added to #612

@pabuhler pabuhler closed this Jan 10, 2023
@pabuhler pabuhler deleted the stream-list-alt branch January 10, 2023 11:58
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