Skip to content

Commit

Permalink
vcap/aja: fixed deprecated (now removed) call
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jul 25, 2024
1 parent 3505190 commit 69ea6c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video_capture/aja.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ AJAStatus vidcap_state_aja::SetupHDMI()
CHECK_RET_FAIL(mDevice.SetReference (::NTV2InputSourceToReferenceSource(mInputSource)));

// configure hdmi with 2.0 support
if (NTV2_IS_4K_VIDEO_FORMAT (mVideoFormat) && !mDevice.DeviceCanDoHDMIQuadRasterConversion ()) {
if (NTV2_IS_4K_VIDEO_FORMAT (mVideoFormat) && !mDevice.features().CanDoHDMIQuadRasterConversion()) {
// Set two sample interleave
CHECK_RET_FAIL(mDevice.SetTsiFrameEnable(true, mInputChannel));

Expand Down Expand Up @@ -517,7 +517,7 @@ AJAStatus vidcap_state_aja::SetupHDMI()
CHECK_RET_FAIL(mDevice.Connect(GetFrameBufferInputXptFromChannel((NTV2Channel) (offset / 2) /* inChannel */, offset % 2 == 1 /* inIsBInput */),
GetTSIMuxOutputXptFromChannel((NTV2Channel) (offset / 2), offset % 2 == 1 /* inLinkB */)));
}
} else if (NTV2_IS_4K_VIDEO_FORMAT (mVideoFormat) && mDevice.DeviceCanDoHDMIQuadRasterConversion ()) {
} else if (NTV2_IS_4K_VIDEO_FORMAT (mVideoFormat) && mDevice.features().CanDoHDMIQuadRasterConversion() {
CHECK_RET_FAIL(mDevice.SetTsiFrameEnable(false, mInputChannel));
for (unsigned offset = 0; offset < 4; ++offset) {
NTV2Channel channel = (NTV2Channel) ((int) mInputChannel + offset);
Expand Down

0 comments on commit 69ea6c0

Please sign in to comment.