Exemplo 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()
}
Exemplo 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()
}