// SetSubtitle sets the current subtitle track. func (this *Player) SetSubtitle(s int) (err error) { if this.ptr == nil { return syscall.EINVAL } if C.libvlc_video_set_spu(this.ptr, C.int(s)) != 0 { err = checkError() } return }
// SetSubtitle sets the current subtitle track. func (this *Player) SetSubtitle(s int) (err error) { if this.ptr == nil { return &VLCError{"Player is nil"} } if C.libvlc_video_set_spu(this.ptr, C.int(s)) != 0 { err = checkError() } return }