Exemple #1
0
// Remove removes a media instance at the given position from the list.
//
// Note: MediaList.Lock() SHOULD be held upon entering this function.
func (this *MediaList) Remove(pos int) error {
	if this.ptr == nil {
		return &VLCError{"MediaList is nil"}
	}

	C.libvlc_media_list_remove_index(this.ptr, C.int(pos))
	return checkError()
}
Exemple #2
0
// Remove removes a media instance at the given position from the list.
//
// Note: MediaList.Lock() SHOULD be held upon entering this function.
func (this *MediaList) Remove(pos int) error {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_remove_index(this.ptr, C.int(pos))
	return checkError()
}