Skip to content

Commit 1738fef

Browse files
committed
chore(deps): bump direct dependencies to latest versions
1 parent df558b1 commit 1738fef

3 files changed

Lines changed: 95 additions & 60 deletions

File tree

cmd/cmaf-ingest-receiver/app/run_test.go

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ func TestReceivingMediaLiveInput(t *testing.T) {
193193
expStartNr, expNrSegments = 896605657, 1
194194
}
195195
manifest := waitForMPD(t, filepath.Join(dstDir, timelineNrMPD), func(m *mpd.MPD) bool {
196-
return mpdReady(m, 2, expStartNr)
196+
return mpdReady(m, 2, expStartNr) && mpdSegmentCountsMatch(m, expNrSegments)
197197
})
198198
for _, as := range manifest.Periods[0].AdaptationSets {
199199
stl := as.SegmentTemplate
@@ -592,6 +592,27 @@ func mpdReady(m *mpd.MPD, nrAS, startNr int) bool {
592592
return true
593593
}
594594

595+
// mpdSegmentCountsMatch reports whether every adaptation set's SegmentTimeline sums to exactly
596+
// nrSegments. Without this check, mpdReady alone can be satisfied by a manifest that has settled on
597+
// the expected start number but not yet accumulated every expected segment, since the two are
598+
// written to independently by the async processing.
599+
func mpdSegmentCountsMatch(m *mpd.MPD, nrSegments int) bool {
600+
for _, as := range m.Periods[0].AdaptationSets {
601+
stl := as.SegmentTemplate
602+
if stl == nil || stl.SegmentTimeline == nil {
603+
return false
604+
}
605+
got := 0
606+
for _, s := range stl.SegmentTimeline.S {
607+
got += int(s.R) + 1
608+
}
609+
if got != nrSegments {
610+
return false
611+
}
612+
}
613+
return true
614+
}
615+
595616
// waitForMPD polls (up to asyncWriteTimeout) until filePath parses into an MPD satisfying cond, then returns it,
596617
// so callers can run their detailed assertions on a settled manifest. cond lets a caller wait for a
597618
// specific state (e.g. an updated startNumber), not just the file's first appearance — a plain

go.mod

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@ module github.com/Dash-Industry-Forum/livesim2
33
go 1.25.0
44

55
require (
6-
github.com/Comcast/gots/v2 v2.2.1
6+
github.com/Comcast/gots/v2 v2.3.0
77
github.com/Eyevinn/dash-mpd v0.16.0
88
github.com/Eyevinn/hi264 v0.10.0
99
github.com/Eyevinn/mp4ff v0.54.0
1010
github.com/a-h/templ v0.3.1020
11-
github.com/beevik/etree v1.5.0
12-
github.com/caddyserver/certmagic v0.22.0
13-
github.com/danielgtaylor/huma/v2 v2.31.0
11+
github.com/beevik/etree v1.7.0
12+
github.com/caddyserver/certmagic v0.25.4
13+
github.com/danielgtaylor/huma/v2 v2.38.0
1414
github.com/dusted-go/logging v1.3.0
15-
github.com/go-chi/chi/v5 v5.2.4
15+
github.com/go-chi/chi/v5 v5.3.1
1616
github.com/google/go-cmp v0.7.0
1717
github.com/knadh/koanf v1.5.0
18-
github.com/prometheus/client_golang v1.21.1
19-
github.com/spf13/pflag v1.0.6
20-
github.com/stretchr/testify v1.10.0
18+
github.com/prometheus/client_golang v1.23.2
19+
github.com/spf13/pflag v1.0.10
20+
github.com/stretchr/testify v1.11.1
2121
)
2222

2323
require (
2424
github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df // indirect
2525
github.com/beorn7/perks v1.0.1 // indirect
26-
github.com/caddyserver/zerossl v0.1.3 // indirect
26+
github.com/caddyserver/zerossl v0.1.5 // indirect
2727
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2828
github.com/davecgh/go-spew v1.1.1 // indirect
2929
github.com/fatih/structs v1.1.0 // indirect
3030
github.com/fsnotify/fsnotify v1.8.0 // indirect
31-
github.com/klauspost/compress v1.18.0 // indirect
32-
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
33-
github.com/libdns/libdns v0.2.3 // indirect
34-
github.com/mholt/acmez/v3 v3.1.0 // indirect
35-
github.com/miekg/dns v1.1.63 // indirect
31+
github.com/klauspost/cpuid/v2 v2.3.0 // indirect
32+
github.com/libdns/libdns v1.1.1 // indirect
33+
github.com/mholt/acmez/v3 v3.1.6 // indirect
34+
github.com/miekg/dns v1.1.72 // indirect
3635
github.com/mitchellh/copystructure v1.2.0 // indirect
3736
github.com/mitchellh/mapstructure v1.5.0 // indirect
3837
github.com/mitchellh/reflectwalk v1.0.2 // indirect
3938
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
4039
github.com/pmezard/go-difflib v1.0.0 // indirect
41-
github.com/prometheus/client_model v0.6.1 // indirect
42-
github.com/prometheus/common v0.63.0 // indirect
43-
github.com/prometheus/procfs v0.15.1 // indirect
40+
github.com/prometheus/client_model v0.6.2 // indirect
41+
github.com/prometheus/common v0.66.1 // indirect
42+
github.com/prometheus/procfs v0.16.1 // indirect
4443
github.com/zeebo/blake3 v0.2.4 // indirect
4544
go.uber.org/multierr v1.11.0 // indirect
46-
go.uber.org/zap v1.27.0 // indirect
45+
go.uber.org/zap v1.27.1 // indirect
4746
go.uber.org/zap/exp v0.3.0 // indirect
47+
go.yaml.in/yaml/v2 v2.4.2 // indirect
4848
golang.org/x/crypto v0.54.0 // indirect
4949
golang.org/x/mod v0.37.0 // indirect
5050
golang.org/x/net v0.57.0 // indirect
5151
golang.org/x/sync v0.22.0 // indirect
5252
golang.org/x/sys v0.47.0 // indirect
5353
golang.org/x/text v0.40.0 // indirect
5454
golang.org/x/tools v0.47.0 // indirect
55-
google.golang.org/protobuf v1.36.5 // indirect
55+
google.golang.org/protobuf v1.36.11 // indirect
5656
gopkg.in/yaml.v3 v3.0.1 // indirect
5757
)

0 commit comments

Comments
 (0)