Exemple #1
0
// Lock gets a lock on the list items.
func (this *MediaList) Lock() error {
	if this.ptr == nil {
		return &VLCError{"MediaList is nil"}
	}
	C.libvlc_media_list_lock(this.ptr)
	return checkError()
}
Exemple #2
0
// Lock gets a lock on the list items.
func (this *MediaList) Lock() error {
	if this.ptr == nil {
		return os.EINVAL
	}
	C.libvlc_media_list_lock(this.ptr)
	return checkError()
}