Moodbar: Use gst_element_link_many
This commit is contained in:
@@ -87,7 +87,7 @@ void MoodbarPipeline::Start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Join them together
|
// 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";
|
qLog(Error) << "Failed to link elements";
|
||||||
gst_object_unref(GST_OBJECT(pipeline_));
|
gst_object_unref(GST_OBJECT(pipeline_));
|
||||||
pipeline_ = nullptr;
|
pipeline_ = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user