diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 8a186f2865..2691c73c81 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -228,18 +228,21 @@ init_devices (void) (void **) &devices[i].input); if (ret != S_OK) { GST_WARNING ("selected device does not have input interface"); + return; } ret = decklink->QueryInterface (IID_IDeckLinkOutput, (void **) &devices[i].output); if (ret != S_OK) { GST_WARNING ("selected device does not have output interface"); + return; } ret = decklink->QueryInterface (IID_IDeckLinkConfiguration, (void **) &devices[i].config); if (ret != S_OK) { GST_WARNING ("selected device does not have config interface"); + return; } ret = iterator->Next (&decklink);