From 8d137c2e6187e7cf0ef9fc58d968d4d52412134a Mon Sep 17 00:00:00 2001 From: tonihei Date: Tue, 11 Dec 2018 15:50:54 +0000 Subject: [PATCH] Fix manifest uri in SsDownloadHelper. This is the same as in SsMediaSource. PiperOrigin-RevId: 225001911 --- .../source/smoothstreaming/offline/SsDownloadHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloadHelper.java b/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloadHelper.java index 877e1bcb46..58393c26e8 100644 --- a/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloadHelper.java +++ b/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/offline/SsDownloadHelper.java @@ -29,6 +29,7 @@ import com.google.android.exoplayer2.source.TrackGroup; import com.google.android.exoplayer2.source.TrackGroupArray; import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifest; import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsManifestParser; +import com.google.android.exoplayer2.source.smoothstreaming.manifest.SsUtil; import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; import com.google.android.exoplayer2.upstream.DataSource; import com.google.android.exoplayer2.upstream.ParsingLoadable; @@ -93,7 +94,8 @@ public final class SsDownloadHelper extends DownloadHelper { @Override protected SsManifest loadManifest(Uri uri) throws IOException { DataSource dataSource = manifestDataSourceFactory.createDataSource(); - return ParsingLoadable.load(dataSource, new SsManifestParser(), uri, C.DATA_TYPE_MANIFEST); + Uri fixedUri = SsUtil.fixManifestUri(uri); + return ParsingLoadable.load(dataSource, new SsManifestParser(), fixedUri, C.DATA_TYPE_MANIFEST); } @Override