decoder/sidplay: simplify the SidDatabase::length() call
This commit is contained in:
parent
388fae2c47
commit
33f33323af
@ -141,12 +141,10 @@ get_song_length(const SidplayContainerPath &container)
|
||||
"failed to load file for calculating md5 sum");
|
||||
return SignedSongTime::Negative();
|
||||
}
|
||||
char md5sum[SIDTUNE_MD5_LENGTH+1];
|
||||
tune.createMD5(md5sum);
|
||||
|
||||
const unsigned song_num = container.track;
|
||||
tune.selectSong(container.track);
|
||||
|
||||
const auto length = songlength_database->length(md5sum, song_num);
|
||||
const auto length = songlength_database->length(tune);
|
||||
if (length < 0)
|
||||
return SignedSongTime::Negative();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user