diff --git a/src/video_capture/decklink.cpp b/src/video_capture/decklink.cpp index a17a718dc..c0c9cb813 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -891,7 +891,7 @@ static void vidcap_decklink_probe(device_info **available_cards, int *card_count realloc(cards, *card_count * sizeof(struct device_info)); memset(&cards[*card_count - 1], 0, sizeof(struct device_info)); snprintf(cards[*card_count - 1].dev, sizeof cards[*card_count - 1].dev, - ":device=%u", get(d)); + ":device=%6x", get(d)); snprintf(cards[*card_count - 1].name, sizeof cards[*card_count - 1].name, "%s", deviceName.c_str()); snprintf(cards[*card_count - 1].extra, sizeof cards[*card_count - 1].extra, diff --git a/src/video_display/decklink.cpp b/src/video_display/decklink.cpp index 7be8c5a70..9d30478e9 100644 --- a/src/video_display/decklink.cpp +++ b/src/video_display/decklink.cpp @@ -1150,7 +1150,7 @@ static void display_decklink_probe(struct device_info **available_cards, int *co realloc(*available_cards, *count * sizeof(struct device_info)); memset(*available_cards + *count - 1, 0, sizeof(struct device_info)); snprintf((*available_cards)[*count - 1].dev, - sizeof(*available_cards)[*count - 1].dev, ":device=%u", + sizeof(*available_cards)[*count - 1].dev, ":device=%6x", get(d)); snprintf((*available_cards)[*count - 1].extra, sizeof (*available_cards)[*count - 1].extra, "\"embeddedAudioAvailable\":\"t\""); (*available_cards)[*count - 1].repeatable = false;