mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
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;
|
quint64 ret = 0;
|
||||||
for (PlaylistItemPtr item : items_) { // clazy:exclude=range-loop-reference
|
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;
|
if (length > 0) ret += length;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user