예제 #1
0
파일: player.go 프로젝트: jteeuwen/go-vlc
// 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()
}
예제 #2
0
파일: player.go 프로젝트: henrym/go-vlc
// 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()
}