From 185f7de4cf96adb032d2ebfefcfc45a8cc2ec25c Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 29 Oct 2025 13:14:16 +0100 Subject: [PATCH] vcap/deltacast: modernize ClockChannel usage (from SDK sample Sample_RX4K.cpp) Removed setting the ClockSystem - not present even in example in SDK 6.13.1. --- src/video_capture/deltacast.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/video_capture/deltacast.cpp b/src/video_capture/deltacast.cpp index 34e0e787e..0d5847b59 100644 --- a/src/video_capture/deltacast.cpp +++ b/src/video_capture/deltacast.cpp @@ -193,11 +193,17 @@ static bool wait_for_channel(struct vidcap_deltacast_state *s) } /* Auto-detect clock system */ - Result = VHD_GetBoardProperty(s->BoardHandle, + Result = +#ifdef VHD_MIN_6_21 + VHD_GetChannelProperty(s->BoardHandle, VHD_RX_CHANNEL, s->channel, + VHD_SDI_CP_CLOCK_DIVISOR, &s->ClockSystem); +#else + VHD_GetBoardProperty(s->BoardHandle, DELTA_CH_TO_VAL(s->channel, VHD_SDI_BP_RX0_CLOCK_DIV, VHD_SDI_BP_RX4_CLOCK_DIV), &s->ClockSystem); +#endif if(Result != VHDERR_NOERROR) { MSG(ERROR, @@ -209,9 +215,6 @@ static bool wait_for_channel(struct vidcap_deltacast_state *s) printf("\nIncoming clock system : %s\n",(s->ClockSystem==VHD_CLOCKDIV_1)?"European":"American"); } - /* Select the detected clock system */ - VHD_SetBoardProperty(s->BoardHandle,VHD_SDI_BP_CLOCK_SYSTEM,s->ClockSystem); - /* Create a logical stream to receive from RX0 connector */ const VHD_STREAMTYPE StrmType = delta_rx_ch_to_stream_t(s->channel); ULONG ProcessingMode = 0;