From adc4f954e2094b70f21181de3c8c371de909ac3e Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 27 Nov 2024 14:49:51 +0100 Subject: [PATCH] vcap/decklink: print actual known connections Instead of printing hard-coded list, print the actally recognized connections by our implementation. --- src/video_capture/decklink.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/video_capture/decklink.cpp b/src/video_capture/decklink.cpp index 4f3dd4e38..c396b1b6a 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -615,7 +615,14 @@ decklink_help(bool full, const char *query_prop_fcc = nullptr) } cout << "\n"; if (!full) { - col() << "Possible connections: " << TBOLD("SDI") << ", " << TBOLD("HDMI") << ", " << TBOLD("OpticalSDI") << ", " << TBOLD("Component") << ", " << TBOLD("Composite") << ", " << TBOLD("SVideo") << "\n"; + col() << "Possible connections:"; + for (const auto &i : get_connection_string_map()) { + col() << (i == *get_connection_string_map().cbegin() + ? " " + : ", ") + << SBOLD(i.second); + } + cout << "\n"; } cout << "\n";