コード例 #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
}