예제 #1
0
파일: medialist.go 프로젝트: henrym/go-vlc
// IsReadOnly returns true if this list is readonly for a user.
func (this *MediaList) IsReadOnly() (bool, error) {
	if this.ptr == nil {
		return false, &VLCError{"MediaList is nil"}
	}
	return C.libvlc_media_list_is_readonly(this.ptr) == 0, checkError()
}
예제 #2
0
파일: medialist.go 프로젝트: egelmex/go-vlc
// IsReadOnly returns true if this list is readonly for a user.
func (this *MediaList) IsReadOnly() (bool, error) {
	if this.ptr == nil {
		return false, os.EINVAL
	}
	return C.libvlc_media_list_is_readonly(this.ptr) == 0, checkError()
}