Skip to content

Commit fbc121f

Browse files
Better nil checks in SCTE event parsing, fix go-gst over release (#330)
1 parent 7a98d72 commit fbc121f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/livekit/ingress
22

33
go 1.23.2
44

5-
replace github.com/go-gst/go-gst => github.com/livekit/go-gst v0.2.34-0.20250205234446-03e3e98e7c6f
5+
replace github.com/go-gst/go-gst => github.com/livekit/go-gst v0.2.34-0.20250213212803-e8b19bcbb3e9
66

77
toolchain go1.23.6
88

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
112112
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
113113
github.com/lithammer/shortuuid/v4 v4.2.0 h1:LMFOzVB3996a7b8aBuEXxqOBflbfPQAiVzkIcHO0h8c=
114114
github.com/lithammer/shortuuid/v4 v4.2.0/go.mod h1:D5noHZ2oFw/YaKCfGy0YxyE7M0wMbezmMjPdhyEFe6Y=
115-
github.com/livekit/go-gst v0.2.34-0.20250205234446-03e3e98e7c6f h1:d5QHoW/YCF9atbqX6WhLFjtyrWOhlq/qssr46s2Pk+E=
116-
github.com/livekit/go-gst v0.2.34-0.20250205234446-03e3e98e7c6f/go.mod h1:pyCgY9XFSG0CAnJzoJ84R5XWn8rEj849EYJOwnAdB8k=
115+
github.com/livekit/go-gst v0.2.34-0.20250213212803-e8b19bcbb3e9 h1:y2yO9iMj61QwabYrMoLY8aheRVNJaBoXN0uJ+nuTI2U=
116+
github.com/livekit/go-gst v0.2.34-0.20250213212803-e8b19bcbb3e9/go.mod h1:pyCgY9XFSG0CAnJzoJ84R5XWn8rEj849EYJOwnAdB8k=
117117
github.com/livekit/go-rtmp v0.0.0-20230829211117-1c4f5a5c81ed h1:w4c3K0j/I2qG+6PUF/ep4tf93HRibNs9QOWWD1SID50=
118118
github.com/livekit/go-rtmp v0.0.0-20230829211117-1c4f5a5c81ed/go.mod h1:X+CliWDrjhm5C+NgmxVt2ncdO3MnKDlbZHTwkuf0808=
119119
github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkDaKb5iXdynYrzB84ErPPO4LbRASk58=

pkg/media/splice_processor.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ func (su *SpliceProcessor) ProcessSpliceEvent(ev *gst.Event) error {
7676
}
7777

7878
str, _ := ev.GetStructure().GetValue("running-time-map")
79-
rMap, _ := str.(*gst.Structure)
79+
if str == nil {
80+
return nil
81+
}
82+
rMap, ok := str.(*gst.Structure)
83+
if !ok {
84+
return nil
85+
}
8086

8187
splices := scteSit.Splices()
8288
for _, sp := range splices {

0 commit comments

Comments
 (0)