DeckLink cap.: fixed Cov. bugs CID 30144{3,4,5}

This commit is contained in:
Martin Pulec
2022-10-20 13:59:26 +02:00
parent c96b6f68cd
commit 3d149fd1b4

View File

@@ -1082,9 +1082,7 @@ bool device_state::init(struct vidcap_decklink_state *s, struct tile *t, BMDAudi
// Create an IDeckLinkIterator object to enumerate all DeckLink cards in the system
IDeckLinkIterator *deckLinkIterator = create_decklink_iterator(true, false);
if (deckLinkIterator == NULL) {
vf_free(s->frame);
delete s;
return VIDCAP_INIT_FAIL;
return false;
}
bool found = false;
while (deckLinkIterator->Next(&deckLink) == S_OK) {