1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-16 18:51:09 +01:00

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

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;