mirror of
https://github.com/androidx/media.git
synced 2025-05-14 19:19:58 +08:00
Handle TrackStream transitions in isSourceReady.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125669080
This commit is contained in:
parent
79cbd390ab
commit
2746d59ea8
@ -370,7 +370,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
|
|||||||
* @return True if the source is ready. False otherwise.
|
* @return True if the source is ready. False otherwise.
|
||||||
*/
|
*/
|
||||||
protected final boolean isSourceReady() {
|
protected final boolean isSourceReady() {
|
||||||
return stream.isReady();
|
return readEndOfStream ? streamIsFinal : stream.isReady();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Abstract methods.
|
// Abstract methods.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user