source: Handle missing elements in converter

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/204>
This commit is contained in:
Thibault Saunier 2020-07-20 17:32:39 -04:00
parent d6092bc8c5
commit ffa00b24a2

View file

@ -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",