NDI cleanup to avoid calling NDI while holding the output mutex
Some checks failed
CI / React UI Build (push) Successful in 10s
CI / Native Windows Build And Tests (push) Failing after 1m46s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
2026-05-22 16:51:48 +10:00
parent f8c3c60611
commit 80c6fd2434
2 changed files with 62 additions and 35 deletions

View File

@@ -30,13 +30,13 @@ public:
NdiOutputMetrics Metrics() const override;
private:
void CompletePendingLocked(VideoIOCompletionResult result);
void FlushPendingLocked();
void CompleteBuffer(void* buffer, VideoIOCompletionResult result);
static void PopulateState(VideoIOState& state, const VideoOutputEdgeConfig& config, const std::string& senderName);
std::string mSenderName;
CompletionCallback mCompletionCallback;
mutable std::mutex mMutex;
mutable std::mutex mSdkMutex;
void* mSender = nullptr;
void* mPendingBuffer = nullptr;
VideoOutputEdgeConfig mConfig;