fix(capture): fix redefined 'expected' variable in decklink-bridge
This commit is contained in:
parent
6294e98dc3
commit
aa646dbb71
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue