From 962c7c8f200c68bed6c6780685196e200f5cc840 Mon Sep 17 00:00:00 2001 From: zgaetano Date: Mon, 1 Jun 2026 08:00:55 -0400 Subject: [PATCH] fix(capture): log SDK errors in video loop, warn on unsupported port index --- services/capture/deltacast-bridge/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/capture/deltacast-bridge/main.c b/services/capture/deltacast-bridge/main.c index d38e3e2..97e6363 100644 --- a/services/capture/deltacast-bridge/main.c +++ b/services/capture/deltacast-bridge/main.c @@ -36,7 +36,9 @@ static ULONG rx_streamtype(unsigned port) { case 1: return VHD_ST_RX1; case 2: return VHD_ST_RX2; case 3: return VHD_ST_RX3; - default: return VHD_ST_RX0; + default: + fprintf(stderr, "{\"error\":\"port %u not supported (max 3)\"}\n", port); + return VHD_ST_RX0; /* caller will fail on signal lock */ } } @@ -294,6 +296,7 @@ int main(int argc, char *argv[]) { } VHD_UnlockSlotHandle(slot); } else if (r != VHDERR_TIMEOUT) { + fprintf(stderr, "[video] VHD_LockSlotHandle error %lu — stopping\n", r); break; } }