@@ -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)
726726func (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)
745745func (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