DashMediaSource: Do not use TIME_UNSET publishTime to check for stale dynamic manifest
Also convert left side from milliseconds to microseconds for comparison ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=189784833
This commit is contained in:
parent
c9d827fa2c
commit
dfa31f02e3
@ -639,7 +639,8 @@ public final class DashMediaSource extends BaseMediaSource {
|
||||
Log.w(TAG, "Loaded out of sync manifest");
|
||||
isManifestStale = true;
|
||||
} else if (dynamicMediaPresentationEnded
|
||||
|| newManifest.publishTimeMs <= expiredManifestPublishTimeUs) {
|
||||
|| (expiredManifestPublishTimeUs != C.TIME_UNSET
|
||||
&& newManifest.publishTimeMs * 1000 <= expiredManifestPublishTimeUs)) {
|
||||
// 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 this manifest is
|
||||
// stale.
|
||||
|
Loading…
x
Reference in New Issue
Block a user