When in 1080p mode, IDeckLinkInput::StopStreams hangs

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

jburkhardt

  • Posts: 3
  • Joined: Tue Dec 13, 2022 2:36 pm
  • Real Name: John Burkhardt

When in 1080p mode, IDeckLinkInput::StopStreams hangs

PostFri Jan 27, 2023 7:54 pm

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:

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.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 35 guests