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:
parent
3df2f3e069
commit
efce0f41d0
7 changed files with 19 additions and 44 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
DeckLinkDeviceDiscovery::DeckLinkDeviceDiscovery()
|
||||
{
|
||||
discovery = CreateDeckLinkDiscoveryInstance();
|
||||
discovery.Set(CreateDeckLinkDiscoveryInstance());
|
||||
if (discovery == nullptr)
|
||||
blog(LOG_INFO, "No blackmagic support");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue