Ejemplo n.º 1
0
// TitleCount returns the number of available movie titles.
func (this *Player) TitleCount(title int) (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_get_title_count(this.ptr)), checkError()
}
Ejemplo n.º 2
0
// TitleCount returns the number of available movie titles.
func (this *Player) TitleCount(title int) (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_get_title_count(this.ptr)), checkError()
}