示例#1
0
文件: media.go 项目: henrym/go-vlc
// Release decreases the reference count of this Media instance and destroys it
// when it reaches zero. It will send out a MediaFreed event to all listeners.
// If the media descriptor object has been released it should not be used again.
func (this *Media) Release() (err error) {
	if this.ptr == nil {
		return &VLCError{"Media is nil"}
	}

	C.libvlc_media_release(this.ptr)
	return
}
示例#2
0
func (this *Media) Release() (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_release(this.ptr)
	return
}
示例#3
0
文件: media.go 项目: ryuken/libvlc-go
func (m *Media) Release() error {
	if m.media == nil {
		return nil
	}

	C.libvlc_media_release(m.media)
	return getError()
}
示例#4
0
文件: main.go 项目: cfstras/cfmedias
// Releases resources associated to a media.
func (m *Media) Release() {
	C.libvlc_media_release((*C.struct_libvlc_media_t)(m))
}