Exemplo n.º 1
0
// VideoTrack returns the current video track.
func (this *Player) VideoTrack() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_video_get_track(this.ptr)), checkError()
}
Exemplo n.º 2
0
// VideoTrack returns the current video track.
func (this *Player) VideoTrack() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_video_get_track(this.ptr)), checkError()
}