Skip to content

Commit

Permalink
decklink: Fix device id in capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiatka committed Aug 19, 2024
1 parent 8bd1caf commit efd502a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned>(d));
":device=%6x", get<unsigned>(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,
Expand Down
2 changes: 1 addition & 1 deletion src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned>(d));
snprintf((*available_cards)[*count - 1].extra, sizeof (*available_cards)[*count - 1].extra, "\"embeddedAudioAvailable\":\"t\"");
(*available_cards)[*count - 1].repeatable = false;
Expand Down

0 comments on commit efd502a

Please sign in to comment.