func ElementLink(elements ...interface{}) error { for i := 0; i < len(elements)-1; i++ { if C.gst_element_link(asGstElem(elements[i]), asGstElem(elements[i+1])) != True() { return errors.New("link error") } } return nil }
func (e *Element) Link(next ...*Element) bool { for _, dst := range next { if C.gst_element_link(e.g(), dst.g()) == 0 { return false } e = dst } return true }
// Link() is a wrapper around gst_element_link(). func (v *Element) Link(dest IElement) bool { c := C.gst_element_link(v.native(), dest.toElement()) return gobool(c) }