When reading the last period, the readingPeriodHolder was set to null in updatePeriods if it was the last period. (This would occur almost immediately when playing a single-period source.) seekToPeriodPosition suppresses reusing a loaded/prepared period if the reading period and playing period did not match, which meant that the whole timeline was recreated when seeking in the last period. Leave readingPeriodHolder non-null. This means that at all times either playingPeriodHolder == readingPeriodHolder (and they could be null or non-null), or playingPeriodHolder and readingPeriodHolder differ and are both non-null. Also fix an issue where streams were never forced to be recreated during track reselection when reading ahead. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134774238
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| audio | Loading commit data... | |
| decoder | Loading commit data... | |
| drm | Loading commit data... | |
| extractor | Loading commit data... | |
| mediacodec | Loading commit data... | |
| metadata | Loading commit data... | |
| source | Loading commit data... | |
| text | Loading commit data... | |
| trackselection | Loading commit data... | |
| ui | Loading commit data... | |
| upstream | Loading commit data... | |
| util | Loading commit data... | |
| video | Loading commit data... | |
| BaseRenderer.java | Loading commit data... | |
| C.java | Loading commit data... | |
| DefaultLoadControl.java | Loading commit data... | |
| ExoPlaybackException.java | Loading commit data... | |
| ExoPlayer.java | Loading commit data... | |
| ExoPlayerFactory.java | Loading commit data... | |
| ExoPlayerImpl.java | Loading commit data... | |
| ExoPlayerImplInternal.java | Loading commit data... | |
| ExoPlayerLibraryInfo.java | Loading commit data... | |
| Format.java | Loading commit data... | |
| FormatHolder.java | Loading commit data... | |
| LoadControl.java | Loading commit data... | |
| ParserException.java | Loading commit data... | |
| Renderer.java | Loading commit data... | |
| RendererCapabilities.java | Loading commit data... | |
| SimpleExoPlayer.java | Loading commit data... | |
| Timeline.java | Loading commit data... |