// Retain increments the reference count of the Instance. // The initial reference count is 1 after vlc.New() returns. func (this *Instance) Retain() (err error) { if this.ptr == nil { return os.EINVAL } C.libvlc_retain(this.ptr) return }
// Retain increments the reference count of the Instance. // The initial reference count is 1 after vlc.New() returns. func (this *Instance) Retain() (err error) { if this.ptr == nil { return &VLCError{"Instance is nil"} } C.libvlc_retain(this.ptr) return }