mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08:00
Fix DashMediaSource NPE
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=182534505
This commit is contained in:
parent
fe1e4fa1f2
commit
24f866e788
@ -605,13 +605,13 @@ public final class DashMediaSource implements MediaSource {
|
||||
// If we receive a dynamic manifest that's older than expected (i.e. its publish time has
|
||||
// expired, or it's dynamic and we know the presentation has ended), then ignore it and load
|
||||
// again up to a specified number of times.
|
||||
if (manifest.dynamic
|
||||
if (newManifest.dynamic
|
||||
&& (dynamicMediaPresentationEnded
|
||||
|| manifest.publishTimeMs <= expiredManifestPublishTimeUs)) {
|
||||
|| newManifest.publishTimeMs <= expiredManifestPublishTimeUs)) {
|
||||
Log.w(
|
||||
TAG,
|
||||
"Loaded stale dynamic manifest: "
|
||||
+ manifest.publishTimeMs
|
||||
+ newManifest.publishTimeMs
|
||||
+ ", "
|
||||
+ dynamicMediaPresentationEnded
|
||||
+ ", "
|
||||
|
Loading…
x
Reference in New Issue
Block a user