Beispiel #1
0
// 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
}
Beispiel #2
0
func (this *Media) Release() (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_media_release(this.ptr)
	return
}
Beispiel #3
0
func (m *Media) Release() error {
	if m.media == nil {
		return nil
	}

	C.libvlc_media_release(m.media)
	return getError()
}
Beispiel #4
0
// Releases resources associated to a media.
func (m *Media) Release() {
	C.libvlc_media_release((*C.struct_libvlc_media_t)(m))
}