Commit dfa31f02 by cblay Committed by Oliver Woodman

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
parent c9d827fa
...@@ -639,7 +639,8 @@ public final class DashMediaSource extends BaseMediaSource { ...@@ -639,7 +639,8 @@ public final class DashMediaSource extends BaseMediaSource {
Log.w(TAG, "Loaded out of sync manifest"); Log.w(TAG, "Loaded out of sync manifest");
isManifestStale = true; isManifestStale = true;
} else if (dynamicMediaPresentationEnded } 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 // 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 // expired, or it's dynamic and we know the presentation has ended), then this manifest is
// stale. // stale.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment