diff --git a/revid/Revid.go b/revid/Revid.go index 57c86924..9a62fa59 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -632,18 +632,7 @@ func (r *revid) setupInputForRaspivid() error { ) } stdout, _ := r.cmd.StdoutPipe() - err := r.cmd.Start() - if err != nil { - for i := 0; i < raspividNoOfTries; i++ { - r.Log(Error, err.Error()) - err = r.cmd.Start() - if err == nil { - goto raspividSuccess - } - } - return err - } -raspividSuccess: + go r.cmd.Run() r.inputReader = bufio.NewReader(stdout) go r.readCamera() return nil