// Count returns the number if items in the list. // // Note: MediaList.Lock() SHOULD be held upon entering this function. func (this *MediaList) Count() (int, error) { if this.ptr == nil { return 0, &VLCError{"MediaList is nil"} } return int(C.libvlc_media_list_count(this.ptr)), checkError() }
// Count returns the number if items in the list. // // Note: MediaList.Lock() SHOULD be held upon entering this function. func (this *MediaList) Count() (int, error) { if this.ptr == nil { return 0, os.EINVAL } return int(C.libvlc_media_list_count(this.ptr)), checkError() }