示例#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
}
示例#2
0
文件: instance.go 项目: henrym/go-vlc
// 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
}