示例#1
0
文件: media.go 项目: henrym/go-vlc
// 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
}
示例#2
0
文件: media.go 项目: egelmex/go-vlc
// 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
}