コード例 #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()
}