Handle TrackStream transitions in isSourceReady.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125669080
This commit is contained in:
olly 2016-06-07 06:00:09 +01:00 committed by Oliver Woodman
parent 79cbd390ab
commit 2746d59ea8

View File

@ -370,7 +370,7 @@ public abstract class TrackRenderer implements ExoPlayerComponent {
* @return True if the source is ready. False otherwise.
*/
protected final boolean isSourceReady() {
return stream.isReady();
return readEndOfStream ? streamIsFinal : stream.isReady();
}
// Abstract methods.