mirror of https://bitbucket.org/ausocean/av.git
Added check to see if revid already running
This commit is contained in:
parent
3d46b750e7
commit
952554dbb4
|
@ -172,6 +172,10 @@ func (r *revidInst) ErrOut(m string){
|
|||
}
|
||||
|
||||
func (r *revidInst) Start() {
|
||||
if r.isRunning {
|
||||
r.ErrOut("Start() has been called but revid already running!")
|
||||
return
|
||||
}
|
||||
r.ErrOut("Starting Revid!")
|
||||
switch r.config.Input {
|
||||
case Raspivid:
|
||||
|
|
Loading…
Reference in New Issue