Skip to content

Conversation

@norihiro
Copy link
Contributor

@norihiro norihiro commented Nov 6, 2023

Description

This PR defers the allocation of the NDI main output context.

Fix #908

Motivation and Context

After OBS Studio has reset its video output, the NDI main output still held a pointer to the old video output and tried to access it when starting the NDI main output.

How Has This Been Tested?

OS: Fedora 37

I followed the steps described in the issue #908 and confirmed it crashed without this PR but does not crash with this PR.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

After OBS Studio has reset its video output, the NDI main output still
held a pointer to the old video output and tried to access it when
starting the NDI main output. To avoid the dangling pointer access,
defer allocation of the NDI main output context.
@norihiro norihiro force-pushed the fig-dangling-pointer branch from ba27994 to 4aeb4ae Compare November 6, 2023 10:10
@paulpv paulpv merged commit 02b08ed into DistroAV:master Nov 6, 2023
@norihiro norihiro deleted the fig-dangling-pointer branch November 11, 2023 23:14
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.

[Bug]: Dangling pointer access when starting NDI output

2 participants