Use lengthInMilliseconds()

This commit is contained in:
Jonas Kvinge 2020-06-14 16:08:18 +02:00
parent 4ce099294c
commit 577b7d8ec8
1 changed files with 1 additions and 1 deletions

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();