Skip to content

Check for ndiLib when destroying receiver and framesync#1084

Merged
Trouffman merged 4 commits into
DistroAV:masterfrom
BitRate27:shutdown
Sep 9, 2024
Merged

Check for ndiLib when destroying receiver and framesync#1084
Trouffman merged 4 commits into
DistroAV:masterfrom
BitRate27:shutdown

Conversation

@BitRate27

@BitRate27 BitRate27 commented Aug 29, 2024

Copy link
Copy Markdown
Contributor

The 100ms delay if no_of_connections == 0 can mean the thread loop will exit after the ndiLib has been destroyed in module unload. Adding a check for a valid ndiLib link before calling destroy methods will keep shutdown from crashing.

@Trouffman

Copy link
Copy Markdown
Collaborator

Great! This was something I was experiencing as well recently, even added a comment about it in the code.

Looking to see if this can be added in the next release too.

@Trouffman Trouffman added enhancement Interface (UI/UX) User Interface (UI / GUI) or User Experience (UX) labels Sep 3, 2024

@Trouffman Trouffman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All sounds good to me.
Also tested this code in the Visibility Behavior Update Branch : #1074

@BitRate27 BitRate27 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks good! Thanks for adding.

@Trouffman
Trouffman merged commit 41413d6 into DistroAV:master Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Interface (UI/UX) User Interface (UI / GUI) or User Experience (UX)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants