Commit d49d3e2c by Rik Heijdens

Changed formatName to something more concise

And fixed the indentation
parent 4a77d1a4
...@@ -31,8 +31,9 @@ public final class Variant implements FormatWrapper { ...@@ -31,8 +31,9 @@ public final class Variant implements FormatWrapper {
public Variant(int index, String name, String url, int bitrate, String codecs, int width, int height) { public Variant(int index, String name, String url, int bitrate, String codecs, int width, int height) {
this.url = url; this.url = url;
this.name = name; this.name = name;
format = new Format(Integer.toString(index), MimeTypes.APPLICATION_M3U8, width, height, -1, -1, String formatName = name != null ? name : Integer.toString(index);
-1, bitrate, null, codecs); format = new Format(formatName, MimeTypes.APPLICATION_M3U8, width, height, -1, -1,
-1, bitrate, null, codecs);
} }
@Override @Override
......
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