mirror of
https://github.com/androidx/media.git
synced 2025-05-17 20:49:53 +08:00
Changed formatName to something more concise
And fixed the indentation
This commit is contained in:
parent
4a77d1a44e
commit
d49d3e2cd3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user