revid: updated comment for setupPipeline

This commit is contained in:
Saxon 2019-04-10 12:13:08 +09:30
parent d3e3904e75
commit dd833afe2e
1 changed files with 2 additions and 1 deletions

View File

@ -181,7 +181,8 @@ func (r *Revid) setConfig(config Config) error {
return nil
}
// setupPipeline constructs a data pipeline.
// setupPipeline constructs the revid dataPipeline. Inputs, encoders and
// senders are create and linked based on the current revid config.
func (r *Revid) setupPipeline(mtsEnc, flvEnc func(dst io.Writer, rate int) (io.Writer, error), multiWriter func(...io.WriteCloser) io.WriteCloser) error {
r.buffer = (*buffer)(ring.NewBuffer(ringBufferSize, ringBufferElementSize, writeTimeout))