From abf19e7a2781b6192e26a90de3ed901a322bbbd4 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 26 Sep 2021 14:42:05 +0200 Subject: [PATCH] Moodbar: Use gst_element_link_many --- src/moodbar/moodbarpipeline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moodbar/moodbarpipeline.cpp b/src/moodbar/moodbarpipeline.cpp index 2c36f0e9a..d364acaa1 100644 --- a/src/moodbar/moodbarpipeline.cpp +++ b/src/moodbar/moodbarpipeline.cpp @@ -87,7 +87,7 @@ void MoodbarPipeline::Start() { } // Join them together - if (!gst_element_link(convert_element_, spectrum) || !gst_element_link(spectrum, fakesink)) { + if (!gst_element_link_many(convert_element_, spectrum, fakesink, nullptr)) { qLog(Error) << "Failed to link elements"; gst_object_unref(GST_OBJECT(pipeline_)); pipeline_ = nullptr;