Moodbar: Use gst_element_link_many

This commit is contained in:
Jonas Kvinge 2021-09-26 14:42:05 +02:00
parent 1d3540dca6
commit abf19e7a27
1 changed files with 1 additions and 1 deletions

View File

@ -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;