Increase video channel buffer size to 3

In case if an encoder slower than 16ms.
This commit is contained in:
sergystepanov 2026-07-01 23:48:45 +03:00
parent 684983e714
commit f2cb7ebc7a

View file

@ -261,7 +261,7 @@ func (g *GstMediaPipe) initVideo() (err error) {
p := g.v
fmt := g.vidFmt
g.videoCh = make(chan videoJob, 1)
g.videoCh = make(chan videoJob, 3)
g.videoDone = make(chan struct{})
go g.videoWorker(p, fmt, g.videoCh, g.videoDone)