From 457bb854a93a178ab644ccd482edecfe79f8de3c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 2 Nov 2017 13:48:55 +0100 Subject: [PATCH] AJA: compat with older SDK --- src/video_capture/aja.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video_capture/aja.cpp b/src/video_capture/aja.cpp index 796e989ec..dcd6bbca7 100644 --- a/src/video_capture/aja.cpp +++ b/src/video_capture/aja.cpp @@ -404,7 +404,13 @@ AJAStatus vidcap_state_aja::SetupVideo() mDevice.SetSDITransmitEnable (mInputChannel, false); // Give the input circuit some time (~10 frames) to lock onto the input signal... +#if AJA_NTV2_SDK_VERSION_BEFORE(12,5) + for (int i = 0; i < 10; i++) { + mDevice.WaitForInputVerticalInterrupt (mInputChannel); + } +#else mDevice.WaitForInputVerticalInterrupt (mInputChannel, 10); +#endif } if (NTV2_INPUT_SOURCE_IS_SDI (mInputSource))