Skip to content

Commit

Permalink
google#3230: SmoothStreaming URLs that uses parenthesis '(...)' as pa…
Browse files Browse the repository at this point in the history
…rt of the URL causes server side errors
  • Loading branch information
nahojkap committed Sep 1, 2017
1 parent 6bd0ba8 commit 9175ee2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ private SsMediaSource(SsManifest manifest, Uri manifestUri,
AdaptiveMediaSourceEventListener eventListener) {
Assertions.checkState(manifest == null || !manifest.isLive);
this.manifest = manifest;
this.manifestUri = manifestUri == null ? null
: Util.toLowerInvariant(manifestUri.getLastPathSegment()).equals("manifest") ? manifestUri
: Uri.withAppendedPath(manifestUri, "Manifest");
this.manifestUri = manifestUri == null ? null : lastPathSegment.contains("manifest") && lastPathSegment.contains("(") && lastPathSegment.contains(")")) ? manifestUri : lastPathSegment.equals("manifest") ? manifestUri : Uri.withAppendedPath(manifestUri, "Manifest");
this.manifestDataSourceFactory = manifestDataSourceFactory;
this.manifestParser = manifestParser;
this.chunkSourceFactory = chunkSourceFactory;
Expand Down

0 comments on commit 9175ee2

Please sign in to comment.