Exemple #1
0
// Retain increments the reference count of this MediaList instance.
func (this *MediaList) Retain() error {
	if this.ptr == nil {
		return &VLCError{"MediaList is nil"}
	}

	C.libvlc_media_list_retain(this.ptr)
	return checkError()
}
Exemple #2
0
// Retain increments the reference count of this MediaList instance.
func (this *MediaList) Retain() error {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_retain(this.ptr)
	return checkError()
}