Clear caches between shuffling to keep memory usage as light as possible.

This commit is contained in:
casey 2016-06-25 19:32:43 -07:00
parent c32a71af93
commit d989d00768

View File

@ -141,6 +141,9 @@ void PlaybackService::ToggleShuffle() {
id = this->playlist.GetId(this->index);
}
this->playlist.ClearCache();
this->unshuffled.ClearCache();
if (this->unshuffled.Count() > 0) { /* shuffled -> unshuffled */
this->playlist.Clear();
this->playlist.Swap(this->unshuffled);