diff --git a/src/video_capture/decklink.cpp b/src/video_capture/decklink.cpp index 3d0c5be63..8c6b78332 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -640,10 +640,16 @@ decklink_help(bool full, const char *query_prop_fcc = nullptr) deviceName = "(unable to get name)"; } + char numeric_index[STR_LEN] = ""; + if (full) { + snprintf(numeric_index, sizeof numeric_index, + TBOLD("%d") ") ", get(d)); + } // *** Print the model name of the DeckLink card - color_printf("\t" TBOLD("%c") ") " TBOLD("%6x") ") " TBOLD( - TGREEN("%s")) "\n", - get(d), get(d), deviceName.c_str()); + color_printf("\t" TBOLD("%c") ") %s" TBOLD("%6x") ") " TBOLD( + TGREEN("%s")) "\n", + get(d), numeric_index, get(d), + deviceName.c_str()); // Increment the total number of DeckLink cards found numDevices++; diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index b35c59352..47909587f 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -639,10 +639,15 @@ show_help(bool full, const char *query_prop_fcc = nullptr) deviceName = "(unable to get name)"; } + char numeric_index[STR_LEN] = ""; + if (full) { + snprintf(numeric_index, sizeof numeric_index, + TBOLD("%d") ") ", get(d)); + } // *** Print the model name of the DeckLink card - color_printf("\t" TBOLD("%c") ") " TBOLD("%6x") ") " TBOLD( + color_printf("\t" TBOLD("%c") ") %s" TBOLD("%6x") ") " TBOLD( TGREEN("%s")) "\n", - get(d), get(d), + get(d), numeric_index, get(d), deviceName.c_str()); if (full) { print_output_modes(deckLink, query_prop_fcc);