Fix total playlist length for songs without length
This commit is contained in:
parent
03037a9a6b
commit
d78ee3d62b
|
@ -2028,7 +2028,7 @@ quint64 Playlist::GetTotalLength() const {
|
|||
|
||||
quint64 ret = 0;
|
||||
for (PlaylistItemPtr item : items_) { // clazy:exclude=range-loop-reference
|
||||
quint64 length = item->Metadata().length_nanosec();
|
||||
qint64 length = item->Metadata().length_nanosec();
|
||||
if (length > 0) ret += length;
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue