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

src: stream: Completely drop the stream before creating a new one #361

Merged

Conversation

joaoantoniocardoso
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso commented Mar 14, 2024

Closes #360

The problem was that RTSP was not finished before we tried to recreate it, so the server skipped the new one.

To drop the current StreamState before having a new one, we wrapped it around an Option, allowing us to take and drop it instead of dropping it when dereferencing and overwriting it.

@patrickelectric patrickelectric merged commit 3f6e90d into mavlink:master Mar 15, 2024
4 checks passed
@joaoantoniocardoso joaoantoniocardoso deleted the fix_stream_recreation branch March 15, 2024 14:15
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.

RTSP is failing to connect after stream recreation
2 participants