forked from j62/ctbrec
Display "unkown resolution" instead of Integer.MAX_VALUE
This commit is contained in:
parent
a7b0b3f374
commit
9109fc8689
|
@ -44,7 +44,11 @@ public class StreamSource implements Comparable<StreamSource> {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
DecimalFormat df = new DecimalFormat("0.00");
|
DecimalFormat df = new DecimalFormat("0.00");
|
||||||
float mbit = bandwidth / 1024.0f / 1024.0f;
|
float mbit = bandwidth / 1024.0f / 1024.0f;
|
||||||
return height + "p (" + df.format(mbit) + " Mbit/s)";
|
if(height == Integer.MAX_VALUE) {
|
||||||
|
return "unknown resolution (" + df.format(mbit) + " Mbit/s)";
|
||||||
|
} else {
|
||||||
|
return height + "p (" + df.format(mbit) + " Mbit/s)";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue