mirror of https://bitbucket.org/ausocean/av.git
Filter safely closes.
This commit is contained in:
parent
15efc8331d
commit
f74e08d70a
|
@ -484,10 +484,13 @@ func (r *Revid) Stop() {
|
||||||
r.cfg.Logger.Log(logger.Error, pkg+"failed to close pipeline", "error", err.Error())
|
r.cfg.Logger.Log(logger.Error, pkg+"failed to close pipeline", "error", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
//err = r.filter.Close()
|
for _, filter := range r.filters {
|
||||||
|
err = filter.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
r.cfg.Logger.Log(logger.Error, pkg+"failed to close pipeline", "error", err.Error())
|
r.cfg.Logger.Log(logger.Error, pkg+"failed to close pipeline", "error", err.Error())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
r.cfg.Logger.Log(logger.Info, pkg+"closed pipeline")
|
r.cfg.Logger.Log(logger.Info, pkg+"closed pipeline")
|
||||||
|
|
||||||
if r.cmd != nil && r.cmd.Process != nil {
|
if r.cmd != nil && r.cmd.Process != nil {
|
||||||
|
|
Loading…
Reference in New Issue