Skip to content

Commit 911e562

Browse files
committed
no slice of pointers
1 parent 3597484 commit 911e562

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

mpd/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type EventStream struct {
77
SchemeIDURI *string `xml:"schemeIdUri,attr"`
88
Value *string `xml:"value,attr,omitempty"`
99
Timescale *int64 `xml:"timescale,attr"`
10-
Events []*Event `xml:"Event,omitempty"`
10+
Events []Event `xml:"Event,omitempty"`
1111
}
1212

1313
type Event struct {

mpd/events_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ func newEventStreamMPD() *MPD {
2222
)
2323
p := m.GetCurrentPeriod()
2424

25-
es := &EventStream{
25+
es := EventStream{
2626
SchemeIDURI: ptrs.Strptr(VALID_EVENT_STREAM_SCHEME_ID_URI),
2727
Value: ptrs.Strptr(VALID_EVENT_STREAM_VALUE),
2828
Timescale: ptrs.Int64ptr(VALID_EVENT_STREAM_TIMESCALE),
2929
}
3030

31-
e0 := &Event{
31+
e0 := Event{
3232
ID: ptrs.Strptr("event-0"),
3333
PresentationTime: ptrs.Int64ptr(100),
3434
Duration: ptrs.Int64ptr(50),
3535
}
3636

37-
e1 := &Event{
37+
e1 := Event{
3838
ID: ptrs.Strptr("event-1"),
3939
PresentationTime: ptrs.Int64ptr(200),
4040
Duration: ptrs.Int64ptr(50),

mpd/mpd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ type Period struct {
9292
SegmentList *SegmentList `xml:"SegmentList,omitempty"`
9393
SegmentTemplate *SegmentTemplate `xml:"SegmentTemplate,omitempty"`
9494
AdaptationSets []*AdaptationSet `xml:"AdaptationSet,omitempty"`
95-
EventStreams []*EventStream `xml:"EventStream,omitempty"`
95+
EventStreams []EventStream `xml:"EventStream,omitempty"`
9696
}
9797

9898
type DescriptorType struct {

0 commit comments

Comments
 (0)