[cscore] GetNextFrame: Wake up even if no frames received (#7244)

This commit is contained in:
Peter Johnson
2024-10-22 08:01:41 -06:00
committed by GitHub
parent 05c7fd929b
commit cbdb4e81f6

View File

@@ -79,7 +79,8 @@ Frame SourceImpl::GetCurFrame() {
Frame SourceImpl::GetNextFrame() {
std::unique_lock lock{m_frameMutex};
auto oldTime = m_frame.GetTime();
m_frameCv.wait(lock, [=, this] { return m_frame.GetTime() != oldTime; });
m_frameCv.wait(
lock, [=, this] { return oldTime == 0 || m_frame.GetTime() != oldTime; });
return m_frame;
}