Commit ca70b10c by Davide Bertola

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

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