コード例 #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()
}