Skip to content

Commit 646fef5

Browse files
authored
Merge pull request #17 from cbsinteractive/AudioLabel
Upstream sync to pull in DASH-IF Audio label changes
2 parents dd38324 + 0016219 commit 646fef5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mpd/mpd.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ type AdaptationSet struct {
234234
SegmentBase *SegmentBase `xml:"SegmentBase,omitempty"`
235235
SegmentList *SegmentList `xml:"SegmentList,omitempty"`
236236
SegmentTemplate *SegmentTemplate `xml:"SegmentTemplate,omitempty"` // Live Profile Only
237-
Label *string `xml:"Label,omitempty"`
237+
Labels []string `xml:"Label,omitempty"`
238238
Representations []*Representation `xml:"Representation,omitempty"`
239239
AccessibilityElems []*Accessibility `xml:"Accessibility,omitempty"`
240240
BaseURL []string `xml:"BaseURL,omitempty"`
@@ -725,8 +725,8 @@ func (m *MPD) AddNewAdaptationSetSubtitleWithID(id string, mimeType string, lang
725725
// label - Label for the subtitle from Studio (i.e. American)
726726
func (period *Period) AddNewAdaptationSetSubtitle(mimeType string, lang string, label string) (*AdaptationSet, error) {
727727
as := &AdaptationSet{
728-
Lang: Strptr(lang),
729-
Label: Strptr(label),
728+
Lang: Strptr(lang),
729+
Labels: []string{label},
730730
CommonAttributesAndElements: CommonAttributesAndElements{
731731
MimeType: Strptr(mimeType),
732732
},
@@ -744,9 +744,9 @@ func (period *Period) AddNewAdaptationSetSubtitle(mimeType string, lang string,
744744
// label - Label for the subtitle from Studio (i.e. American)
745745
func (period *Period) AddNewAdaptationSetSubtitleWithID(id string, mimeType string, lang string, label string) (*AdaptationSet, error) {
746746
as := &AdaptationSet{
747-
ID: Strptr(id),
748-
Lang: Strptr(lang),
749-
Label: Strptr(label),
747+
ID: Strptr(id),
748+
Lang: Strptr(lang),
749+
Labels: []string{label},
750750
CommonAttributesAndElements: CommonAttributesAndElements{
751751
MimeType: Strptr(mimeType),
752752
},

0 commit comments

Comments
 (0)