Don't reuse SampleStream instance in SingleSampleMediaSource
Referential equality is going to become important for detecting whether a SampleStream has been replaced, so we need to create new instances as we do elsewhere. This also enables multiple SampleStreams to be provided for a single TrackGroup, as is also true for DASH and SmoothStreaming. It's forbidden to ask for multiple SampleStreams from a single TrackGroup currently, but we may choose to relax that at some point (and indicate whether it's allowed as a flag on each TrackGroup). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129842336
Showing
with
80 additions
and
68 deletions
Please
register
or
sign in
to comment