From 24fae3ef3df42e55a7b0c1d24e3db5bfa16f7d55 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 30 Oct 2025 16:17:36 +0100 Subject: [PATCH] delta_get_board_type_name: use VHD fn With VHD 6.3x and above, use VHD_BOARDTYPE_ToPrettyString() to support also new types without having to manually manage the list, eg.: - VHD_BOARDTYPE_MIXEDINTERFACE - VHD_BOARDTYPE_FLEX_DEPRECATED - VHD_BOARDTYPE_ASI - VHD_BOARDTYPE_IP - VHD_BOARDTYPE_HDMI20 - VHD_BOARDTYPE_FLEX_DP - VHD_BOARDTYPE_FLEX_SDI - VHD_BOARDTYPE_12G - VHD_BOARDTYPE_FLEX_HMI --- src/deltacast_common.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/deltacast_common.cpp b/src/deltacast_common.cpp index 2646ad147..8dd594cfc 100644 --- a/src/deltacast_common.cpp +++ b/src/deltacast_common.cpp @@ -808,6 +808,12 @@ delta_single_to_quad_links_interface(ULONG RXStatus, ULONG *pInterface, const char * delta_get_board_type_name(ULONG BoardType) { +#ifdef HAVE_VHD_STRING + thread_local char buf[128]; + snprintf_ch(buf, "%s type", + VHD_BOARDTYPE_ToPrettyString((VHD_BOARDTYPE) BoardType)); + return buf; +#else static const std::unordered_map board_type_map = { { VHD_BOARDTYPE_HD, "HD board type" }, { VHD_BOARDTYPE_HDKEY, "HD key board type" }, @@ -824,4 +830,5 @@ delta_get_board_type_name(ULONG BoardType) return it->second.c_str(); } return "Unknown DELTACAST type"; +#endif }