예제 #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
파일: instance.go 프로젝트: egelmex/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 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()
}