func (e *Element) GetBus() *Bus { bus := C.gst_element_get_bus(e.g()) if bus == nil { return nil } b := new(Bus) b.SetPtr(glib.Pointer(bus)) return b }
// GetBus() is a wrapper around gst_element_get_bus(). func (v *Element) GetBus() (*Bus, error) { c := C.gst_element_get_bus(v.native()) if c == nil { return nil, nilPtrErr } obj := &glib.Object{glib.ToGObject(unsafe.Pointer(c))} b := wrapBus(obj) //b.RefSink() runtime.SetFinalizer(&b.Object, (*Object).Unref) return b, nil }