fix(capture): fix redefined 'expected' variable in decklink-bridge

This commit is contained in:
Wild Dragon Dev 2026-06-03 17:40:40 +00:00
parent 6294e98dc3
commit aa646dbb71

View file

@ -255,8 +255,8 @@ public:
/* Detect format on first frame if format-change hasn't fired.
* Use atomic exchange so only ONE thread runs the first-frame init
* even if two frame callbacks race before signal_reported is set. */
bool expected = false;
if (m_ds->signal_reported.compare_exchange_strong(expected, true)) {
bool exp = false;
if (m_ds->signal_reported.compare_exchange_strong(exp, true)) {
m_ds->width = (int)videoFrame->GetWidth();
m_ds->height = (int)videoFrame->GetHeight();
if (m_ds->fps_num == 0) {