Commit 925a7fd0 by Arnold Szabo

Remove unnecessary empty check in getCues(..)

parent 7a6de79f
......@@ -61,8 +61,8 @@ import java.util.List;
@Override
public List<Cue> getCues(long timeUs) {
int index = Util.binarySearchFloor(cueTimesUs, timeUs, true, false);
if (index == -1 || cues.get(index).isEmpty()) {
// timeUs is earlier than the start of the first cue, or we have an empty cue.
if (index == -1) {
// timeUs is earlier than the start of the first cue.
return Collections.emptyList();
} else {
return cues.get(index);
......
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