mirror of
https://github.com/androidx/media.git
synced 2025-05-04 14:10:40 +08:00

When seekToPeriodPosition found that the seek destination period was already prepared, it would not disable/re-enable renderers. This was fine if the playing period wasn't changing, but in other cases the renderers would be left reading the incorrect streams (and the underlying periods may have been released). Also, transition to the buffering state before re-enabling renderers, so that the renderers are not started until leaving the buffering state. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129625632