From 87a2b9d90e3dc1194a6e6eb6fbe2ec8d65b6e90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Einarson?= Date: Thu, 4 Jan 2024 16:45:58 +0100 Subject: [PATCH] fix: moved RepresentationBaseType earlier in AdaptationSet and Representation --- CHANGELOG.md | 4 ++++ mpd/mpd_test.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0574f6c..e83c092 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - GetContentProtections, GetMimeType, GetCodecs, and GetSegmentTemplate methods for AdaptationSet and Representation - ContentProtection elements and name spaces for Marlin DRM and DASH-IF ClearKey +### Fixed + +- ContentProtection and other parts of RepresentationBaseType moved before other elements in AdaptationSet and Representation + ## [0.10.0] - 2023-05-26 ### Changed diff --git a/mpd/mpd_test.go b/mpd/mpd_test.go index bb5dc47..9b308c0 100644 --- a/mpd/mpd_test.go +++ b/mpd/mpd_test.go @@ -36,6 +36,11 @@ func TestDecodeEncodeMPDs(t *testing.T) { inTree, err := xmltree.Parse(td) require.NoError(t, err) outTree, err := xmltree.Parse(out) + if fName == "multi-drm.mpd" { + ofh, err := os.Create(fName) + require.NoError(t, err) + _, _ = ofh.Write(out) + } require.NoError(t, err) if !xmltree.Equal(inTree, outTree) { inBuf := bytes.Buffer{}