- 13 Feb, 2009 1 commit
-
-
Romain Bignon authored
This command shuffles a range of songs.
-
- 09 Feb, 2009 1 commit
-
-
Vladimir S Eremin authored
In random mode, this patch allows clients to see the "next song" in the queue.
-
- 04 Feb, 2009 2 commits
-
-
Max Kellermann authored
Pass constant playlist objects to functions which do not modify it.
-
Max Kellermann authored
Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
-
- 25 Jan, 2009 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
-
- 24 Jan, 2009 6 commits
-
-
Max Kellermann authored
Now playlist.c does not contain any protocol specific code anymore.
-
Max Kellermann authored
No CamelCase and no typedefs.
-
Max Kellermann authored
Replaced several wrapper functions from playlist.c, and make command.c use the queue print functions directly.
-
Max Kellermann authored
To allow code outside playlist.c to access the "queue" object, provide a function which returns a const pointer.
-
Max Kellermann authored
No typedefs.
-
Max Kellermann authored
Moved the 2 remaining global variables into the playlist struct.
-
- 23 Jan, 2009 3 commits
-
-
Max Kellermann authored
PlaylistInfo() (notice the capital 'P') sends a stored playlist to the client. Move it to a separate library, where all the code which glues the playlist and the MPD protocol together will live.
-
Max Kellermann authored
The LocateTagItem objects are not modified.
-
Max Kellermann authored
The playlist.c source is currently quite hard to understand. I have managed to wrap my head around it, and this patch attempts to explain it to the next guy.
-
- 22 Jan, 2009 4 commits
-
-
Max Kellermann authored
All callers pass false. Don't bother to collect that parameter.
-
Max Kellermann authored
There were only two possible states: STOP and PLAY. The code looks a lot easier if we use a bool instead. Move the variable into the playlist struct.
-
Max Kellermann authored
Added several comments.
-
Max Kellermann authored
Attempt to untie the playlist.c knot: moved the playlist storage code to queue.c, struct queue.
-
- 21 Jan, 2009 1 commit
-
-
Max Kellermann authored
Don't attempt to restart the player if it was stopped, but there were still songs left on the playlist. This looks like it has been a workaround for a bug which has been fixed long time ago.
-
- 20 Jan, 2009 1 commit
-
-
Max Kellermann authored
The "TAG" event is emitted by the player thread when the current song's tag has changed. Split this event from "PLAYLIST" and make it a separate callback, which is more efficient.
-
- 18 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 10 Jan, 2009 2 commits
-
-
Max Kellermann authored
A song index cannot be negative. Also require the second parameter to be valid.
-
Thomas Jansen authored
Loosely based on a patch provided by lesion in bug #1766. The playlistinfo command can now retrieve ranges of the playlist. The new argument indicates which entry is the last one that will be displayed. The number of displayed entries may be smaller than expected if the end of the playlist is reached. Previous usage: playlistinfo [start] New usage: playlistinfo [start[:end]]
-
- 04 Jan, 2009 1 commit
-
-
Max Kellermann authored
Don't call command_error() if loading a song from the playlist fails. This may result in assertion failures, since command_error() may be called more than once.
-
- 30 Dec, 2008 1 commit
-
-
Max Kellermann authored
There are no unix sockets on WIN32, and therefore no authentication. WIN32 might have similar capabilities, but until we implement them, disable that MPD feature.
-
- 11 Nov, 2008 1 commit
-
-
Max Kellermann authored
When the tag of the current song changes (e.g. a new tag was sent in the stream), update the playlist, so clients pick up the new tag.
-
- 31 Oct, 2008 2 commits
-
-
Max Kellermann authored
Added the function map_spl_utf8_to_fs() which replaces utf8_to_fs_playlist_path().
-
Max Kellermann authored
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
-
- 23 Oct, 2008 2 commits
-
-
Max Kellermann authored
The function deletePlaylist() shouldn't be in playlist.c.
-
Max Kellermann authored
There are some integers which have a "magic" -1 value which means "undefined" or "nothing". All others can be converted to unsigned, since they must not contain a negative number.
-
- 22 Oct, 2008 1 commit
-
-
Max Kellermann authored
The two functions clearStoredPlaylist() and addToStoredPlaylist() don't belong into playlist.c. clearStoredPlaylist() was a wrapper for spl_clear(), and is converted into a CPP macro for now.
-
- 15 Oct, 2008 1 commit
-
-
Max Kellermann authored
Clients which have authenticated via unix socket may add local files to the MPD playlist, provided that they own the file.
-
- 08 Oct, 2008 2 commits
-
-
Max Kellermann authored
"bool" should be used in C99 programs for boolean values.
-
Max Kellermann authored
Again, a data type which can be forward-declared.
-
- 29 Sep, 2008 2 commits
-
-
Max Kellermann authored
Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
-
Eric Wong authored
We don't change the song pointer there, either.
-
- 07 Sep, 2008 3 commits
-
-
Max Kellermann authored
Pass the client struct instead of the raw file descriptor.
-
Max Kellermann authored
The function loadPlaylist() wants to report incremental errors to the client, for this reason we cannot remove its protocol dependency right now. Instead, make it use the client struct instead of the raw file descriptor.
-
Max Kellermann authored
Don't pass the raw file descriptor around. This migration patch is rather large, because all of the sources have inter dependencies - we have to change all of them at the same time.
-