mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
Merge pull request #2620 from afriza/patch-1
Decklink: Fix crash when no matching device
This commit is contained in:
@@ -60,6 +60,9 @@ static bool decklink_output_start(void *data)
|
||||
|
||||
device.Set(deviceEnum->FindByHash(decklink->deviceHash));
|
||||
|
||||
if (!device)
|
||||
return false;
|
||||
|
||||
DeckLinkDeviceMode *mode = device->FindOutputMode(decklink->modeID);
|
||||
|
||||
decklink->SetSize(mode->GetWidth(), mode->GetHeight());
|
||||
|
||||
Reference in New Issue
Block a user