Пример #1
0
// SubTile returns the current video subtitle or -1 if none is set.
func (this *Player) SubTile() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_video_get_spu(this.ptr)), checkError()
}
Пример #2
0
// SubTile returns the current video subtitle or -1 if none is set.
func (this *Player) SubTile() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_video_get_spu(this.ptr)), checkError()
}