Пример #1
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 &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
func Release() error {
	if instance == nil {
		return nil
	}

	C.libvlc_release(instance)
	return getError()
}