Skip to content

Commit

Permalink
Always inherit ContentProtection from AdaptationSet
Browse files Browse the repository at this point in the history
Fixes #230

Change-Id: Ie1dc63de83a40c270c586f8aee98fa98c214ecb8
  • Loading branch information
joeyparrish committed Nov 11, 2015
1 parent a304a04 commit 7fabab9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/dash/mpd_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1176,9 +1176,8 @@ shaka.dash.mpd.Representation.prototype.parse = function(parent, elem) {
mpd.mergeChild_(this, elem, parent.segmentTemplate) :
mpd.parseChild_(this, elem, mpd.SegmentTemplate);

if (this.contentProtections.length == 0) {
this.contentProtections = parent.contentProtections;
}
this.contentProtections =
this.contentProtections.concat(parent.contentProtections);
};


Expand Down

0 comments on commit 7fabab9

Please sign in to comment.