Skip to content

Commit

Permalink
sync set pipeline null (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Sep 14, 2023
1 parent b1dee22 commit ee559a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/gstreamer/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,18 @@ func (p *Pipeline) Stop() {
}

if err := p.OnStop(); err != nil {
logger.Errorw("onStop failure", err)
p.OnError(err)
}

if old >= StateRunning {
p.loop.Quit()
}

if err := p.SetState(gst.StateNull); err != nil {
logger.Errorw("failed to set pipeline to null", err)
}

p.UpgradeState(StateFinished)
go func() {
_ = p.pipeline.SetState(gst.StateNull)
}()
}

func (p *Pipeline) DebugBinToDotData(details gst.DebugGraphDetails) string {
Expand Down

0 comments on commit ee559a4

Please sign in to comment.