decklink: Use ComPtr for variables

This makes sure Decklink variables are automatically released.

Closes https://github.com/obsproject/obs-studio/pull/5508
This commit is contained in:
cg2121 2022-02-20 14:14:24 -06:00 • committed by Jim
commit efce0f41d0
7 changed files with 19 additions and 44 deletions

View file

@ -5,7 +5,7 @@
DeckLinkDeviceDiscovery::DeckLinkDeviceDiscovery()
{
discovery = CreateDeckLinkDiscoveryInstance();
discovery.Set(CreateDeckLinkDiscoveryInstance());
if (discovery == nullptr)
blog(LOG_INFO, "No blackmagic support");
}