mirror of
https://github.com/androidx/media.git
synced 2025-05-05 06:30:24 +08:00
Fix continueLoading in IMA deferred periods
continueLoading may be called during preparation, but this is not handled correctly in the case where a deferred period doesn't have a source yet. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158696539
This commit is contained in:
parent
c980eae9c4
commit
58280f979e
@ -506,7 +506,7 @@ public final class ImaAdsMediaSource implements MediaSource {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean continueLoading(long positionUs) {
|
public boolean continueLoading(long positionUs) {
|
||||||
return mediaPeriod.continueLoading(positionUs);
|
return mediaPeriod != null && mediaPeriod.continueLoading(positionUs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// MediaPeriod.Callback implementation.
|
// MediaPeriod.Callback implementation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user