示例#1
0
// 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
}
示例#2
0
文件: instance.go 项目: henrym/go-vlc
// 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
}