Merge "Use MediaParser SeekMap unknown duration constant" into rvc-dev am: 7c41c8152c am: 3130b3f66b am: 122596fe90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11744204 Change-Id: If25d33db5eda93b63966bfff543df564d44d87e4
This commit is contained in:
@@ -219,7 +219,8 @@ public final class MediaParser {
|
||||
* duration is unknown.
|
||||
*/
|
||||
public long getDurationMicros() {
|
||||
return mExoPlayerSeekMap.getDurationUs();
|
||||
long durationUs = mExoPlayerSeekMap.getDurationUs();
|
||||
return durationUs != C.TIME_UNSET ? durationUs : UNKNOWN_DURATION;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user