コード例 #1
0
ファイル: instance.go プロジェクト: egelmex/go-vlc
// Retain increments the reference count of the Instance.
// The initial reference count is 1 after vlc.New() returns.
func (this *Instance) Retain() (err error) {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_retain(this.ptr)
	return
}
コード例 #2
0
ファイル: instance.go プロジェクト: henrym/go-vlc
// Retain increments the reference count of the Instance.
// The initial reference count is 1 after vlc.New() returns.
func (this *Instance) Retain() (err error) {
	if this.ptr == nil {
		return &VLCError{"Instance is nil"}
	}

	C.libvlc_retain(this.ptr)
	return
}