Skip to content

Commit

Permalink
DeckLink: Give more time before querying status
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jun 18, 2024
1 parent 69762aa commit 3533103
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Common/DecklinkWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,9 @@ bool DecklinkWrapper::WaitForSessionEnd(uint64_t Timeout)
if (difftime(time(NULL), LastInput) > Timeout)
return true;
}
PlaybackMode = GetMode();
this_thread::sleep_for(std::chrono::milliseconds(500));
}
while (PlaybackMode == Playback_Mode_Playing);
while ((PlaybackMode = GetMode()) == Playback_Mode_Playing);

return false;
}
Expand Down

0 comments on commit 3533103

Please sign in to comment.