Skip to content

Commit 04251cb

Browse files
committed
make Period.Start a pointer for optional 0 value support
1 parent 9925fc4 commit 04251cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpd/mpd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ type MPD struct {
7878
type Period struct {
7979
ID string `xml:"id,attr,omitempty"`
8080
Duration Duration `xml:"duration,attr,omitempty"`
81-
Start Duration `xml:"start,attr,omitempty"`
81+
Start *Duration `xml:"start,attr,omitempty"`
8282
BaseURL string `xml:"BaseURL,omitempty"`
8383
SegmentBase *SegmentBase `xml:"SegmentBase,omitempty"`
8484
SegmentList *SegmentList `xml:"SegmentList,omitempty"`

0 commit comments

Comments
 (0)