Esempio n. 1
0
// AGL returns the agl handler where the media player should render its video output.
func (this *Player) AGL() (drawable uint32, err error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}

	return uint32(C.libvlc_media_player_get_agl(this.ptr)), checkError()
}
Esempio n. 2
0
// AGL returns the agl handler where the media player should render its video output.
func (this *Player) AGL() (drawable uint32, err error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}

	return uint32(C.libvlc_media_player_get_agl(this.ptr)), checkError()
}