diff --git a/ext/libstrawberry-tagreader/tagreader.cpp b/ext/libstrawberry-tagreader/tagreader.cpp index a4ff9d6ad..1fa878b23 100644 --- a/ext/libstrawberry-tagreader/tagreader.cpp +++ b/ext/libstrawberry-tagreader/tagreader.cpp @@ -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();