Exemple #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
}
Exemple #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
}