aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge release 0.15.8 from branch 'v0.15.xMax Kellermann2010-01-181-2/+2
|\ | | | | | | | | | | | | | | | | Conflicts: Makefile.am NEWS configure.ac src/decoder/ffmpeg_decoder_plugin.c src/decoder_thread.c
| * queue: don't repeat current song in consume modeMax Kellermann2010-01-161-2/+2
| | | | | | | | | | Check consume mode in queue_next_order(), because the current song would be deleted as soon as it's finished; it cannot be played again.
* | Update copyright notices.Avuton Olrich2009-12-311-1/+1
| |
* | include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | queue: no CamelCaseMax Kellermann2009-10-131-12/+12
|/ | | | Renamed idToPosition.
* queue: queue_generate_id() is not necessary for export.Avuton Olrich2009-03-301-1/+4
|
* implemented the 'consume' modeRomain Bignon2009-03-301-0/+1
| | | | Consume mode removes each song played
* renamed smartstop to single and changed behaviorRomain Bignon2009-03-271-3/+8
| | | | | When single mode is enabled, after current song it stops playback, or it replay same song if repeat mode is activated.
* implements the smartstop featureRomain Bignon2009-03-271-0/+3
| | | | | | | | | The smartstop feature is a way to tell mpd to stop playing after current song. This patche provides: - 'state' command returns 'smartstop' state (1 or 0) - 'smartstop' can activate or not the smartstop state - when song is terminated, mpd stops playing and smartstop is set to 0
* queue/playlist/command: move rangeJeffrey Middleton2009-03-261-0/+42
| | | | | | | | | | | The move command now accepts a range for the first argument, in the same form as other range commands, e.g. move 15:17 3. The first song in the range is placed at the destination position. Note that as with other range commands, the range is inclusive on the left only; this example would move only songs 15 and 16, not 17. [mk: fixed signed/unsigned warnings; use G_MAXUINT instead of UINT_MAX]
* all: Update copyright header.Avuton Olrich2009-03-131-3/+4
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* queue: update order array after song moveMax Kellermann2009-02-091-0/+14
| | | | | | | Commit f78cddb4 introduced a regression: after a song was moved, the order array was not updated (in random mode). This caused MPD to think the "current" song has changed when you moved something to the position of the current song.
* queue: added queue_shuffle_order_last()Max Kellermann2009-01-251-0/+7
| | | | | This function shuffles the last song of a range. This is used by addSongToPlaylist().
* queue: update moved song versionsMax Kellermann2009-01-231-0/+1
| | | | This patch fixes a regression introduced by commit aa9ffc.
* queue: added queue_shuffle_order()Max Kellermann2009-01-231-0/+11
| | | | | | | | | | | The function shuffles the virtual order of songs, but does not move them physically. This is used in random mode. The new function replaces playlist.c's randomizeOrder() function, which was aware of playlist.current and playlist.queued. The latter is always -1 anyway, and the former as preserved by the caller, by converting playlist.current to a position, and then back to an order number.
* queue: merged songs, songMod, positionToId into struct queue_itemMax Kellermann2009-01-231-45/+33
| | | | | Move everything which belongs together into one common struct. This simplifies the implementation of several queue operations.
* playlist: moved code to queue.cMax Kellermann2009-01-221-0/+267
Attempt to untie the playlist.c knot: moved the playlist storage code to queue.c, struct queue.