When in 1080p mode, IDeckLinkInput::StopStreams hangs

I have an application that won't shutdown when the video resolution is 1080p (bmdModeHD1080p6000). In other modes I've tested, like 1080i it works fine.
Our code is based on the loop through sample for Linux in C++.
We get a notification on a condition variable to signal the application is shutting down. We then call 'stopCapture' in the input device just like the sample code. This is implemented like this:
And what happens is that the call to StopStreams doesn't return for a very long time, sometimes several minutes.
Again, if running in 1080i mode this doesn't happen and the call returns quickly.
Our code is based on the loop through sample for Linux in C++.
We get a notification on a condition variable to signal the application is shutting down. We then call 'stopCapture' in the input device just like the sample code. This is implemented like this:
- Code: Select all
void MyInputDevice::stopCapture() {
// Stop the capture
m_deckLinkInput->StopStreams();
// Disable audio and video inputs
m_deckLinkInput->DisableVideoInput();
m_deckLinkInput->SetCallback(nullptr);
}
And what happens is that the call to StopStreams doesn't return for a very long time, sometimes several minutes.
Again, if running in 1080i mode this doesn't happen and the call returns quickly.