mirror of https://bitbucket.org/ausocean/av.git
mts: Changed uses of NewEncoder in revid and senders_test to use extra argument.
This commit is contained in:
parent
634ecfdbb2
commit
9fe3de5d65
|
@ -259,7 +259,7 @@ func (r *Revid) setupPipeline(mtsEnc, flvEnc func(dst io.Writer, rate int) (io.W
|
|||
}
|
||||
|
||||
func newMtsEncoder(dst io.Writer, fps int) (io.Writer, error) {
|
||||
e := mts.NewEncoder(dst, float64(fps))
|
||||
e := mts.NewEncoder(dst, float64(fps), mts.Video)
|
||||
return e, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ func TestMtsSenderSegment(t *testing.T) {
|
|||
tstDst := &destination{}
|
||||
loadSender := newMtsSender(tstDst, log)
|
||||
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
||||
encoder := mts.NewEncoder((*buffer)(rb), 25)
|
||||
encoder := mts.NewEncoder((*buffer)(rb), 25, mts.Video)
|
||||
|
||||
// Turn time based PSI writing off for encoder.
|
||||
const psiSendCount = 10
|
||||
|
@ -195,7 +195,7 @@ func TestMtsSenderDiscontinuity(t *testing.T) {
|
|||
tstDst := &destination{testDiscontinuities: true, discontinuityAt: clipWithDiscontinuity}
|
||||
loadSender := newMtsSender(tstDst, log)
|
||||
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
||||
encoder := mts.NewEncoder((*buffer)(rb), 25)
|
||||
encoder := mts.NewEncoder((*buffer)(rb), 25, mts.Video)
|
||||
|
||||
// Turn time based PSI writing off for encoder.
|
||||
const psiSendCount = 10
|
||||
|
|
Loading…
Reference in New Issue