music player daemon (fork)
Go to file
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
android update copyright year 2017-01-03 20:48:59 +01:00
doc doc/user: add brief "troubleshooting" chapter 2017-01-04 08:04:20 +01:00
m4 configure.ac: use MPD_AUTO for libsndio and Haiku 2016-12-26 13:35:19 +01:00
python/build python/libs: upgrade FLAC to 1.3.2 2017-01-03 15:04:07 +01:00
scripts scripts: delete obsolete scripts 2013-04-17 00:37:30 +02:00
src Fix for priority order bug if reordering in SetRandom() 2017-01-04 10:10:27 +01:00
systemd release v0.19.21 2016-12-13 11:00:39 +01:00
test update copyright year 2017-01-03 20:48:59 +01:00
win32 python/build/autotools: pass RANLIB to configure 2016-10-26 17:00:17 +02:00
.gitignore release v0.19.21 2016-12-13 11:00:39 +01:00
AUTHORS update copyright year 2017-01-03 20:48:59 +01:00
autogen.sh autogen.sh: re-add $ACLOCAL_FLAGS, $AUTOMAKE_FLAGS 2014-01-27 10:35:37 +01:00
configure.ac configure.ac: use MPD_AUTO for libsndio and Haiku 2016-12-26 13:35:19 +01:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
INSTALL Merge branch 'v0.19.x' 2016-07-29 20:25:59 +02:00
Makefile.am Makefile.am: updated web server documentation path 2017-01-04 10:09:24 +01:00
mpd.svg import MPD SVG icon 2014-07-14 19:04:46 +02:00
NEWS input/curl: remove duplicate InitEasy() call 2016-12-19 14:38:50 +01:00
README.md README.md: add a few helpful links for starters 2016-02-26 18:03:08 +01:00
valgrind.suppressions zeroconf/Avahi: call dbus_shutdown() during shutdown 2014-06-10 23:21:09 +02:00

Music Player Daemon

http://www.musicpd.org

A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.

For basic installation information see the INSTALL file.

Users

Developers

Legal

MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.