mirror of
https://github.com/androidx/media.git
synced 2025-05-16 12:09:50 +08:00

This change allows MediaPeriod instances to replace SampleStream instances when the selection isn't changing. It also allows MediaPeriod instances to retain a SampleStream but indicate that the renderer consuming from it needs to be reset. The change is used to fix the ref'd bug, and is used to do the same thing in HLS without the need for the source to report a discontinuity. Note that reporting discontinuity could cause unnecessary failure when used as a child of MergingMediaSource. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129971782