mirror of https://bitbucket.org/ausocean/av.git
fixed a potential problem
This commit is contained in:
parent
1f9a14a0ee
commit
f1f7235fa5
|
@ -128,6 +128,13 @@ func NewRevidInstance(config Config) (r *revidInst, err error) {
|
||||||
go r.packClips()
|
go r.packClips()
|
||||||
r.Log(Info, "New revid instance created! config is:")
|
r.Log(Info, "New revid instance created! config is:")
|
||||||
r.Log(Info, fmt.Sprintf("%v", r.config))
|
r.Log(Info, fmt.Sprintf("%v", r.config))
|
||||||
|
if r.setupOutput != nil {
|
||||||
|
err := r.setupOutput()
|
||||||
|
if err != nil {
|
||||||
|
r.Log(Error, "Output setup didn't work!")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,13 +235,6 @@ func (r *revidInst) Start() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
r.Log(Info, "Starting Revid!")
|
r.Log(Info, "Starting Revid!")
|
||||||
if r.setupOutput != nil {
|
|
||||||
err := r.setupOutput()
|
|
||||||
if err != nil {
|
|
||||||
r.Log(Error, "Output setup didn't work!")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
|
||||||
go r.setupInput()
|
go r.setupInput()
|
||||||
go r.outputClips()
|
go r.outputClips()
|
||||||
r.isRunning = true
|
r.isRunning = true
|
||||||
|
|
Loading…
Reference in New Issue