コード例 #1
0
ファイル: listplayer.go プロジェクト: egelmex/go-vlc
// Release decreases the reference count of the instance and destroys it when it reaches zero.
func (this *ListPlayer) Release() (err error) {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_media_list_player_release(this.ptr)
	return
}
コード例 #2
0
ファイル: listplayer.go プロジェクト: henrym/go-vlc
// Release decreases the reference count of the instance and destroys it when it reaches zero.
func (this *ListPlayer) Release() (err error) {
	if this.ptr == nil {
		return &VLCError{"ListPlayer is nil"}
	}

	C.libvlc_media_list_player_release(this.ptr)
	return
}