Esempio n. 1
0
// Chapter returns the current movie chapter.
func (this *Player) Chapter() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_get_chapter(this.ptr)), checkError()
}
Esempio n. 2
0
// Chapter returns the current movie chapter.
func (this *Player) Chapter() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_get_chapter(this.ptr)), checkError()
}