Esempio n. 1
0
// Wait waits until an interface causes the instance to exit.
// You should start at least one interface first, using Instance.StartUI().
func (this *Instance) Wait() error {
	if this.ptr == nil {
		return os.EINVAL
	}

	C.libvlc_wait(this.ptr)
	return nil
}
Esempio n. 2
0
// Wait waits until an interface causes the instance to exit.
// You should start at least one interface first, using Instance.StartUI().
func (this *Instance) Wait() error {
	if this.ptr == nil {
		return &VLCError{"Instance is nil"}
	}

	C.libvlc_wait(this.ptr)
	return nil
}