DASHMediaSource: ensure MPD.Location is applied in also case of http redirect

This commit is contained in:
Davide Bertola 2020-03-09 16:33:57 +01:00
parent 087c6e0e05
commit ca70b10c03

View File

@ -809,7 +809,7 @@ public final class DashMediaSource extends BaseMediaSource {
// this load. If it was, we ignore the manifest location and prefer the manual replacement.
@SuppressWarnings("ReferenceEquality")
boolean isSameUriInstance = loadable.dataSpec.uri == manifestUri;
if (isSameUriInstance) {
if (isSameUriInstance || isRedirect) {
manifestUri = manifest.location;
}
}