From ffa00b24a29674001a99306a8173021f89dee022 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 20 Jul 2020 17:32:39 -0400 Subject: [PATCH] source: Handle missing elements in converter Part-of: --- ges/ges-source.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ges/ges-source.c b/ges/ges-source.c index 0ca5e11780..090ceeb572 100644 --- a/ges/ges-source.c +++ b/ges/ges-source.c @@ -56,6 +56,9 @@ link_elements (GstElement * bin, GPtrArray * elements) for (i = 0; i < elements->len; i++) { element = elements->pdata[i]; + if (!element) + continue; + gst_bin_add (GST_BIN (bin), element); if (prev) { if (!gst_element_link_pads_full (prev, "src", element, "sink",