mirror of
https://github.com/androidx/media.git
synced 2025-05-14 02:59:52 +08:00

ExoPlayerImpl.prepare() replaces the timeline with an empty timeline. After this happens, MSG_SOURCE_INFO_REFRESHED could be handled on the main thread and could relate to the old source, so the player could expose a stale timeline. Count pending prepares in ExoPlayerImpl so that source info refreshes can be suppressed until preparation actually completes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152496255