Пример #1
0
// Retain increments the reference count of this player.
func (this *Player) Retain() (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_player_retain(this.ptr)
	return
}
Пример #2
0
// Retain increments the reference count of this player.
func (this *Player) Retain() (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_media_player_retain(this.ptr)
	return
}