Beispiel #1
0
// Retain increments the reference count of this Media instance.
func (this *Media) Retain() (err error) {
	if this.ptr == nil {
		return &VLCError{"Media is nil"}
	}

	C.libvlc_media_retain(this.ptr)
	return
}
Beispiel #2
0
// Retain increments the reference count of this Media instance.
func (this *Media) Retain() (err error) {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_retain(this.ptr)
	return
}