music player daemon (fork)
Go to file
Eric Wong 688289b295 Revert the queue implementation and commands
It's too ugly and broken (both technically and usability-wise)
to be worth supporting in any stable release.

In one sentence: The queue is a very crippled version of the
playlist that takes precedence over the normal playlist.

How is it crippled?

* The "queueid" command only allows the queuing of songs
ALREADY IN THE PLAYLIST!  This promotes having the entire mpd
database of songs in the playlist, which is a stupid practice
to begin with.

* It doesn't allow for meaningful rearranging and movement
of songs within the queue.  To move a song, you'd need to
dequeue and requeue it (and other songs on the list).
Why?  The playlist already allows _all_ these features
and shows everything a client needs to know about the ordering
of songs in a _single_ command!

* Random was a stupid idea to begin with and unfortunately
we're stuck supporting it since we've always had it.  Users
should learn to use "shuffle" instead and not look at their
playlists.  Implementing queue because we have the problem of
random is just a bandage fix and digging ourselves a new hole.

This protocol addition was never in a stable release of mpd, so
reverting it will only break things for people following trunk;
which I'm not too worried about.  I am however worried about
long-term support of this misfeature, so I'm removing it.

Additionally, there are other points:

* It's trivially DoS-able:

(while true; do echo queueid $song_id; done) | nc $MPD_HOST $MPD_PORT

The above commands would cause the queue to become infinitely
expanding, taking up all available memory in the system.  The
mpd playlist was implemented as an array with a fixed (but
configurable) size limit for this reason.

* It's not backwards-compatible.  All clients would require
upgrades (and additional complexity) to even know what the
next song in the playlist is.  mpd is a shared architecture,
and we should not violate the principle of least astonishment
here.

This removes the following commands:
queueid, dequeue, queueinfo

Additionally, the status field of "playlistqueue: " is removed
from the status command.

While this DoS is trivial to fix, the design is simply too
broken to ever support in a real release.

The overloading of the "addid" command and the allowing of
negative numbers to be used as offsets is far more flexible.

This improved "addid" is completely backwards-compatible with
all clients, and does not require clients to have UI changes or
run additional commands to display the queue.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7155 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-01-26 20:21:07 +00:00
doc Adding FIFO audio output. This is pretty much identical to the old one, 2007-06-13 14:15:30 +00:00
m4 Updating libFLAC.m4 so that -L isn't erroneously specified without an 2007-05-28 13:01:08 +00:00
scripts scripts/mpd-indent.sh: fixup goto label indentation 2007-12-16 21:47:48 +00:00
src Revert the queue implementation and commands 2008-01-26 20:21:07 +00:00
AUTHORS Updating Kodest's name/email. 2007-06-25 12:13:45 +00:00
autogen.sh Use POSIX compatible tr arguments in autogen.sh 2007-11-16 04:05:53 +00:00
ChangeLog ChangeLog: adding LAME tag ReplayGain 2007-08-25 17:02:41 +00:00
configure.ac Check for pkg-config unconditionally. It might not be needed if we disable 2007-06-24 21:31:08 +00:00
COPYING import from SF CVS 2004-02-23 23:41:20 +00:00
INSTALL Updating INSTALL. 2007-05-27 13:38:52 +00:00
Makefile.am Merge branches/ew r7104 2007-12-28 02:56:25 +00:00
README Doc updates for 0.13.0 2007-03-31 15:20:39 +00:00
TODO Moving 0.13 tasks to 0.14 in TODO. 2007-05-27 13:15:12 +00:00
UPGRADING Updating UPGRADING. 2007-05-27 13:30:46 +00:00

                       Music Player Daemon (MPD)
                        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.

To install MPD, see INSTALL.

MPD includes mp4ff in the source, due to licensing issues of the newer 
version and includes bugfixes with the properly licensed version.  mp4ff is 
released under the GPL and copyrighted by M. Bakker, Ahead Software AG 
(http://www.nero.com) and is distributed as a part of the FAAD2 - Freeware 
Advance Audio (AAC) Decoder.

MPD is released under the GNU Public License.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
For the full license, see COPYING.