diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 4978ee40fa..82fc8005da 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -1586,6 +1586,10 @@ gst_decklink_get_devices (void) g_once (&devices_once, init_devices, NULL); + if (!devices) { + return NULL; + } + for (i = 0; i < devices->len; i++) { Device *device = (Device *) g_ptr_array_index (devices, i);