コード例 #1
0
ファイル: medialist.go プロジェクト: henrym/go-vlc
// Release cleans up any memory used by this list and decrements the
// reference counter for the Media instance this came from.
func (this *MediaList) Release() error {
	if this.ptr == nil {
		return &VLCError{"MediaList is nil"}
	}

	C.libvlc_media_list_release(this.ptr)
	this.ptr = nil
	return checkError()
}
コード例 #2
0
ファイル: medialist.go プロジェクト: egelmex/go-vlc
// Release cleans up any memory used by this list and decrements the
// reference counter for the Media instance this came from.
func (this *MediaList) Release() error {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_release(this.ptr)
	this.ptr = nil
	return checkError()
}