Commit 9f1fbd36 authored by Philippe Normand's avatar Philippe Normand 🐢

decklink: Fix crash when probing without driver

If there is no decklink hardware/driver, the devices list is empty (NULL), so
this needs to be checked before iterating over the list.
parent 982072ce
Pipeline #94041 failed with stages
in 80 minutes
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment