Esempio n. 1
0
// 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()
}
Esempio n. 2
0
// 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()
}