Format in TrackGroup must include roleFlags from HLS manifest parse

With sample prepare (non-chunkless) the `Format` object in the TrackGroup is derived from the data in the stream and data in the manifest.  This change includes the roleFlags from the HLS manifest parse in the final derived format.
This commit is contained in:
Steve Mayhew 2020-05-04 11:29:04 -07:00
parent bb744e5f9b
commit 2ba0b1d997

View file

@ -1314,6 +1314,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
.setLabel(playlistFormat.label)
.setLanguage(playlistFormat.language)
.setSelectionFlags(playlistFormat.selectionFlags)
.setRoleFlags(playlistFormat.roleFlags)
.setAverageBitrate(propagateBitrates ? playlistFormat.averageBitrate : Format.NO_VALUE)
.setPeakBitrate(propagateBitrates ? playlistFormat.peakBitrate : Format.NO_VALUE)
.setCodecs(codecs)