示例#1
0
文件: misc.go 项目: egelmex/go-vlc
// IsRunning returns true if the discovery service is currently running.
func (this *Discoverer) IsRunning() (bool, error) {
	if this.ptr == nil {
		return false, os.EINVAL
	}
	return C.libvlc_media_discoverer_is_running(this.ptr) != 0, checkError()
}
示例#2
0
文件: misc.go 项目: henrym/go-vlc
// IsRunning returns true if the discovery service is currently running.
func (this *Discoverer) IsRunning() (bool, error) {
	if this.ptr == nil {
		return false, &VLCError{"Discoverer is nil"}
	}
	return C.libvlc_media_discoverer_is_running(this.ptr) != 0, checkError()
}