mpd/src/queue
Eugene Baklanov bd14afe347 Fix for priority order bug if reordering in SetRandom()
Fix for the problem where order with priorities gets out of whack in case it's
reordered by SetRandom() while another song is currently playing.
What happens is, if some song is already playing and you have set some
priorities before switching on the random mode, and then turn the mode on, the
original code swaps position of the first song in the order (i.e., the highest
priority song) with current, so that current is 0 (which it should be). The
problem is, the "original" first song then goes to the place "current" song was
after reordering, wherever that is, instead of going after the "current" song.
This patch fixes the issue.
Also the fix makes MoveOrder() public, because why shouldn't it be, anyway.  It
certainly makes more sense than just having SwapOrders() public for some
reason.

Signed-off-by: Eugene Baklanov <miltenfiremage@gmail.com>
2017-01-04 10:10:27 +01:00
..
IdTable.hxx update copyright year 2017-01-03 20:48:59 +01:00
Listener.hxx update copyright year 2017-01-03 20:48:59 +01:00
Playlist.cxx Fix for priority order bug if reordering in SetRandom() 2017-01-04 10:10:27 +01:00
Playlist.hxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistControl.cxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistEdit.cxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistState.cxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistState.hxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistTag.cxx update copyright year 2017-01-03 20:48:59 +01:00
PlaylistUpdate.cxx update copyright year 2017-01-03 20:48:59 +01:00
Queue.cxx update copyright year 2017-01-03 20:48:59 +01:00
Queue.hxx Fix for priority order bug if reordering in SetRandom() 2017-01-04 10:10:27 +01:00
QueuePrint.cxx update copyright year 2017-01-03 20:48:59 +01:00
QueuePrint.hxx update copyright year 2017-01-03 20:48:59 +01:00
QueueSave.cxx update copyright year 2017-01-03 20:48:59 +01:00
QueueSave.hxx update copyright year 2017-01-03 20:48:59 +01:00