Ejemplo n.º 1
0
// 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()
}
Ejemplo n.º 2
0
// 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()
}