// 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 }
func (this *Media) Release() (err error) { if this.ptr == nil { return syscall.EINVAL } C.libvlc_media_release(this.ptr) return }
func (m *Media) Release() error { if m.media == nil { return nil } C.libvlc_media_release(m.media) return getError() }
// Releases resources associated to a media. func (m *Media) Release() { C.libvlc_media_release((*C.struct_libvlc_media_t)(m)) }