1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-18 19:42:53 +01:00

Use lengthInMilliseconds()

This commit is contained in:
Jonas Kvinge 2020-06-14 16:08:18 +02:00
parent 4ce099294c
commit 577b7d8ec8

View File

@ -192,7 +192,7 @@ void TagReader::ReadFile(const QString &filename, pb::tagreader::SongMetadata *s
if (fileref->audioProperties()) {
song->set_bitrate(fileref->audioProperties()->bitrate());
song->set_samplerate(fileref->audioProperties()->sampleRate());
song->set_length_nanosec(fileref->audioProperties()->length() * kNsecPerSec);
song->set_length_nanosec(fileref->audioProperties()->lengthInMilliseconds() * kNsecPerMsec);
}
TagLib::Tag *tag = fileref->tag();