]> git.draconx.ca Git - mpdhacks.git/commitdiff
mpdreload: Fix batch deletion when there are still loads pending.
authorNick Bowler <nbowler@draconx.ca>
Sun, 3 Jan 2021 21:12:49 +0000 (16:12 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 5 Jan 2021 03:32:07 +0000 (22:32 -0500)
The batch deletion did not take into account the possibility that
some or all of the playlist may still need to be loaded afterwards
(this happens when there are tracks at the end of the target playlist
which are not in the current play queue).

This resulted in erroneous operation.  Fix that up.

And separate the batch loading into a separate routine to hopefully
clarify what the various track indices are so future me understands.


No differences found