Fix total playlist length for songs without length
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user