Beispiel #1
0
// OutputCount returns the number of outputs the current media has.
func (this *Player) OutputCount() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_media_player_has_vout(this.ptr)), checkError()
}
Beispiel #2
0
// OutputCount returns the number of outputs the current media has.
func (this *Player) OutputCount() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_media_player_has_vout(this.ptr)), checkError()
}