mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-30 17:58:37 +08:00
decklink: Keep deckLinkConfiguration while in use
Apparently this annoying, stupid variable was leaking before the ComPtr was added, which ironically was necessary to ensure devices worked. After that ComPtr commit some devices stopped capturing properly. Basically, it implies that this pointer needs to stick around while the device is in use. (Jim note: This was one of the most painful things I've ever had to debug)
This commit is contained in:
@@ -371,7 +371,6 @@ bool DeckLinkDeviceInstance::StartCapture(DeckLinkDeviceMode *mode_,
|
||||
if (!device->GetInput(&input))
|
||||
return false;
|
||||
|
||||
ComPtr<IDeckLinkConfiguration> deckLinkConfiguration;
|
||||
HRESULT result = input->QueryInterface(IID_IDeckLinkConfiguration,
|
||||
(void **)&deckLinkConfiguration);
|
||||
if (result != S_OK) {
|
||||
|
||||
Reference in New Issue
Block a user