task_database: fix parsing CUEs with one track

This commit is contained in:
Brian Koropoff 2017-09-17 17:52:11 -07:00
parent c6c090052e
commit 46e78e9d1b

View File

@ -516,6 +516,10 @@ int cue_find_track(const char *cue_path, bool first,
}
}
if (file_size != -1) {
last_index = file_size;
}
if (update_cand(&cand_index, &last_index, &largest, last_file, offset,
size, track_path, max_len)) {
rv = 0;