コード例 #1
0
ファイル: library.go プロジェクト: golang-lib/go-vlc
// Release decreases the reference count of the instance and destroys it when it reaches zero.
func (this *Library) Release() (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_library_release(this.ptr)
	return
}
コード例 #2
0
ファイル: library.go プロジェクト: henrym/go-vlc
// Release decreases the reference count of the instance and destroys it when it reaches zero.
func (this *Library) Release() (err error) {
	if this.ptr == nil {
		return &VLCError{"Library is nil"}
	}

	C.libvlc_media_library_release(this.ptr)
	return
}