// Items returns a list of all the media items in this library. func (this *Library) Items() (*MediaList, error) { if this.ptr == nil { return nil, syscall.EINVAL } if c := C.libvlc_media_library_media_list(this.ptr); c != nil { return &MediaList{c}, nil } return nil, checkError() }
// Items returns a list of all the media items in this library. func (this *Library) Items() (*MediaList, error) { if this.ptr == nil { return nil, &VLCError{"Library is nil"} } if c := C.libvlc_media_library_media_list(this.ptr); c != nil { return &MediaList{c}, nil } return nil, checkError() }