Skip to content

Commit c257c36

Browse files
committed
blackmagic: connections more terse (one line)
1 parent 90b6ec7 commit c257c36

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/blackmagic_common.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @author Martin Pulec <pulec@cesnet.cz>
44
*/
55
/*
6-
* Copyright (c) 2014-2024 CESNET
6+
* Copyright (c) 2014-2025 CESNET, zájmové sdružení právnických osob
77
* All rights reserved.
88
*
99
* Redistribution and use in source and binary forms, with or without
@@ -1447,16 +1447,16 @@ void
14471447
print_bmd_connections(IDeckLinkProfileAttributes *deckLinkAttributes,
14481448
BMDDeckLinkAttributeID id, const char *module_prefix)
14491449
{
1450-
col() << "\n\tConnection can be one of following:\n";
1450+
col() << "\tsupported connetions:";
14511451
int64_t connections = 0;
14521452
if (deckLinkAttributes->GetInt(id, &connections) != S_OK) {
1453-
log_msg(LOG_LEVEL_ERROR, "%sCould not get connections.\n\n",
1453+
log_msg(LOG_LEVEL_ERROR, "\n%sCould not get connections.\n\n",
14541454
module_prefix);
14551455
return;
14561456
}
14571457
for (auto const &it : get_connection_string_map()) {
14581458
if ((connections & it.first) != 0) {
1459-
col() << "\t\t" << SBOLD(it.second) << "\n";
1459+
col() << " " << SBOLD(it.second);
14601460
}
14611461
}
14621462
col() << "\n";

src/video_display/decklink.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* usage and also SignalGenerator was used for scheduled playback.
1313
*/
1414
/*
15-
* Copyright (c) 2010-2024 CESNET, z. s. p. o.
15+
* Copyright (c) 2010-2025 CESNET, zájmové sdružení právnických osob
1616
* All rights reserved.
1717
*
1818
* Redistribution and use in source and binary forms, with or without
@@ -629,7 +629,7 @@ show_help(bool full, const char *query_prop_fcc = nullptr)
629629

630630
col() << "\nRecognized pixel formats:";
631631
for_each(uv_to_bmd_codec_map.cbegin(), uv_to_bmd_codec_map.cend(), [](auto const &i) { col() << " " << SBOLD(get_codec_name(i.first)); } );
632-
cout << "\n";
632+
cout << "\n\n";
633633

634634
col() << "Devices (idx, topological ID, name):\n";
635635
// Create an IDeckLinkIterator object to enumerate all DeckLink cards in the system
@@ -2258,7 +2258,6 @@ print_output_modes(IDeckLink *deckLink, const char *query_prop_fcc)
22582258
if (deckLink->QueryInterface(IID_IDeckLinkProfileAttributes,
22592259
(void **) &deckLinkAttributes) == S_OK) {
22602260
if (query_prop_fcc != nullptr) {
2261-
cout << "\n";
22622261
print_bmd_attribute(deckLinkAttributes, query_prop_fcc);
22632262
}
22642263
print_bmd_connections(deckLinkAttributes,

0 commit comments

Comments
 (0)