Esempio n. 1
0
// SetVideoTrack sets the current video track.
func (this *Player) SetVideoTrack(track int) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	if C.libvlc_video_set_track(this.ptr, C.int(track)) != 0 {
		err = checkError()
	}

	return
}
Esempio n. 2
0
// SetVideoTrack sets the current video track.
func (this *Player) SetVideoTrack(track int) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	if C.libvlc_video_set_track(this.ptr, C.int(track)) != 0 {
		err = checkError()
	}

	return
}