viewernode: fixed bug where tracks would be counted more than once

This commit is contained in:
itsmattkc
2020-03-03 15:49:44 +11:00
parent baf3fbde05
commit c5ca0ae3ee
+2 -4
View File
@@ -181,11 +181,9 @@ void ViewerOutput::UpdateTrackCache()
track_cache_.clear();
foreach (TrackList* list, track_lists_) {
QVector<TrackOutput*> track_list = list->Tracks();
foreach (TrackOutput* track, track_list) {
foreach (TrackOutput* track, list->Tracks()) {
if (track) {
track_cache_.append(list->Tracks());
track_cache_.append(track);
}
}
}