示例#1
0
文件: instance.go 项目: henrym/go-vlc
// Release decreases the reference count of the instance and destroys it
// when it reaches zero.
func (this *Instance) Release() (err error) {
	if this.ptr == nil {
		return &VLCError{"Instance is nil"}
	}

	C.libvlc_release(this.ptr)
	return
}
示例#2
0
// Release decreases the reference count of the instance and destroys it
// when it reaches zero.
func (this *Instance) Release() (err error) {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_release(this.ptr)
	return
}
示例#3
0
文件: vlc.go 项目: ryuken/libvlc-go
func Release() error {
	if instance == nil {
		return nil
	}

	C.libvlc_release(instance)
	return getError()
}