Ejemplo n.º 1
0
// 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
}
Ejemplo n.º 2
0
// 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
}