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