Changed formatName to something more concise

And fixed the indentation
This commit is contained in:
Rik Heijdens 2015-10-28 16:57:29 -04:00
parent 4a77d1a44e
commit d49d3e2cd3

View File

@ -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