I am trying to get a unique ID to distinguish 2 black magic intensity shuttle (thunderbolt), and tried as mentioned in this post to get the persistent ID. Here's the piece of code:
- Code: Select all
void BlackMagicCamera::initializeCamera(IDeckLink* deckLink, int camIdx)
{
HRESULT result;
if (deckLink->QueryInterface(IID_IDeckLinkInput, reinterpret_cast<void**>(&m_deckLinkInput)) != S_OK)
{ std::cout << "Could not retrieve input interface" << std::endl; }
IDeckLinkAPIInformation* deckLinkInfo;
if (deckLink->QueryInterface(IID_IDeckLinkAPIInformation, reinterpret_cast<void**>(&deckLinkInfo)) != S_OK)
{ std::cout << "Could not find information interface" << std::endl; }
int64_t id = 0;
if (deckLinkInfo->GetInt(BMDDeckLinkPersistentID, &id) != S_OK)
{
std::cout << "Could not find uuid for decklink device...\n" << std::endl;
}
...
Though I can't get the information interface from the IDeckLink interface.
I also tried to retrieve it from the IDeckLinkInput interface, but again with no success.
Where am I supposed to get this uuid from?
Regards,
bmarques