mirror of https://bitbucket.org/ausocean/av.git
revid: in TestSendFailDiscontinuity disconClipNo const => clipWithDiscontinuity
This commit is contained in:
parent
88eac4900d
commit
7070c4e434
|
@ -205,8 +205,8 @@ func TestSendFailDiscontinuity(t *testing.T) {
|
|||
mts.Meta = meta.New()
|
||||
// Create ringBuffer sender, loadSender and the MPEGTS encoder.
|
||||
rb := ring.NewBuffer(rbSize, rbElementSize, wTimeout)
|
||||
const disconClipNo = 3
|
||||
tstSender := &sender{testDiscontinuities: true, discontinuityAt: disconClipNo}
|
||||
const clipWithDiscontinuity = 3
|
||||
tstSender := &sender{testDiscontinuities: true, discontinuityAt: clipWithDiscontinuity}
|
||||
loadSender := newMtsSender(tstSender, log)
|
||||
packer := tstPacker{rb: rb}
|
||||
encoder := mts.NewEncoder(&packer, 25)
|
||||
|
@ -246,7 +246,7 @@ func TestSendFailDiscontinuity(t *testing.T) {
|
|||
t.Errorf("We don't have one less clip as we should. Got: %v, want: %v\n", gotLen, expectedLen)
|
||||
}
|
||||
// Now check that the discontinuity indicator is set at the discontinuityClip PAT.
|
||||
disconClip := result[disconClipNo]
|
||||
disconClip := result[clipWithDiscontinuity]
|
||||
firstPkt := disconClip[:mts.PacketSize]
|
||||
var pkt [mts.PacketSize]byte
|
||||
copy(pkt[:], firstPkt)
|
||||
|
|
Loading…
Reference in New Issue