Skip to content

Commit

Permalink
vcap/decklink: print actual known connections
Browse files Browse the repository at this point in the history
Instead of printing hard-coded list, print the actally recognized
connections by our implementation.
  • Loading branch information
MartinPulec committed Nov 27, 2024
1 parent 116096b commit adc4f95
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit adc4f95

Please sign in to comment.