From 780c3dca08995efd4075bacbe77bfef455e3d8e2 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 8 Mar 2016 15:35:07 +0100 Subject: [PATCH] AJA capture: replace some deprecated func --- src/video_capture/aja.cpp | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/video_capture/aja.cpp b/src/video_capture/aja.cpp index d4179b286..2ac46792b 100644 --- a/src/video_capture/aja.cpp +++ b/src/video_capture/aja.cpp @@ -586,21 +586,15 @@ void vidcap_state_aja::SetupInputAutoCirculate (void) mInputTransferStruct.frameBufferFormat = mPixelFormat; mInputTransferStruct.bDisableExtraAudioInfo = true; - // Tell capture AutoCirculate to use frame buffers 0-9 on the device... - const uint32_t startFrame (0); - const uint32_t endFrame (9); - - mDevice.InitAutoCirculate (mInputTransferStruct.channelSpec, startFrame, endFrame, - 1, // Number of channels - NTV2_AUDIOSYSTEM_1, // Which audio system? - true, // With audio? - true, // With RP188? - false, // Allow frame buffer format changes? - false, // With color correction? - false, // With vidProc? - false, // With custom ANC data? - false, // With LTC? - false); // With audio2? + bool ret; + ret = mDevice.AutoCirculateInitForInput(mInputChannel, + 10, // Number of system frame + mAudioSystem, // Audio system + AUTOCIRCULATE_WITH_RP188, // Options + 1); // Number of channels + if (!ret) { + throw string("Unable to initialize auto circulate!"); + } } // SetupInputAutoCirculate AJAStatus vidcap_state_aja::Run()