Skip to content

Commit adc4f95

Browse files
committed
vcap/decklink: print actual known connections
Instead of printing hard-coded list, print the actally recognized connections by our implementation.
1 parent 116096b commit adc4f95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/video_capture/decklink.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,14 @@ decklink_help(bool full, const char *query_prop_fcc = nullptr)
615615
}
616616
cout << "\n";
617617
if (!full) {
618-
col() << "Possible connections: " << TBOLD("SDI") << ", " << TBOLD("HDMI") << ", " << TBOLD("OpticalSDI") << ", " << TBOLD("Component") << ", " << TBOLD("Composite") << ", " << TBOLD("SVideo") << "\n";
618+
col() << "Possible connections:";
619+
for (const auto &i : get_connection_string_map()) {
620+
col() << (i == *get_connection_string_map().cbegin()
621+
? " "
622+
: ", ")
623+
<< SBOLD(i.second);
624+
}
625+
cout << "\n";
619626
}
620627
cout << "\n";
621628

0 commit comments

Comments
 (0)