- 03 Mar, 2009 2 commits
-
-
Avuton Olrich authored
Since there are no other callers than stdout, this wouldn't be a problem, but since there maybe in the future go ahead and fix it.
-
Avuton Olrich authored
-
- 02 Mar, 2009 1 commit
-
-
Max Kellermann authored
The lastfm input plugin enables MPD to play lastfm:// URLs. This plugin is not complete yet: it plays only the first song in the last.fm playlist, and the playlist parser isn't even implemented properly.
-
- 25 Feb, 2009 1 commit
-
-
Max Kellermann authored
"ls" is a bad name for a library which parses URIs. We'll move the rest of the "ls" library later.
-
- 29 Jan, 2009 1 commit
-
-
Max Kellermann authored
This patch implements the MMS protocol, by using libmms. It is quite experimental: it does not support seeking yet, and it is currently using synchronous I/O, which causes MPD to hang while waiting for the server.
-
- 04 Jan, 2009 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Determine the suffix manually, and use decoder_plugin_from_suffix() and archive_plugin_from_suffix() instead. This way, song_file_update_inarchive() can be optimized: it does not have to translate its path.
-
Max Kellermann authored
Don't include headers which are not used. Fix some includes in decoder_thread.c.
-
- 02 Jan, 2009 1 commit
-
-
Max Kellermann authored
It's been superseded by GLib's GSList.
-
- 31 Dec, 2008 1 commit
-
-
Laszlo Ashin authored
-
- 29 Dec, 2008 1 commit
-
-
Max Kellermann authored
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
-
- 27 Dec, 2008 1 commit
-
-
Max Kellermann authored
When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
-
- 16 Dec, 2008 7 commits
-
-
Viliam Mateicka authored
-
Max Kellermann authored
uri_has_scheme() checks if an URI contains the sub string "://", which makes MPD assume that it is a remote URI.
-
Max Kellermann authored
When a file had no file name extension, getSuffix() could return the extension of the parent directory (if it had one).
-
Max Kellermann authored
The old getSuffix() code was quite wasteful, and can be replaced completely with strrchr().
-
Max Kellermann authored
Use the C99 "bool" data type instead of "int".
-
Max Kellermann authored
printRemoteUrlHandlers() cannot fail, and does not need a return value.
-
Max Kellermann authored
The function didn't do anything useful, it was just several lines obfuscating that it was only forwarding isRemoteUrl()'s return value.
-
- 01 Nov, 2008 1 commit
-
-
Max Kellermann authored
The decoder_plugin structs must never change. Don't work with non-const pointers.
-
- 28 Oct, 2008 1 commit
-
-
Max Kellermann authored
Remove duplicated code from MPD.
-
- 26 Oct, 2008 1 commit
-
-
Max Kellermann authored
MPD's HTTP client code has always been broken, no matter how effort was put into fixing it. Replace it with libcurl, which is known to be quite stable. This adds a fat library dependency, but only for people who need streaming.
-
- 22 Oct, 2008 2 commits
-
-
Max Kellermann authored
The function print_spl_list() replaces the old function lsPlaylists() from ls.c.
-
Max Kellermann authored
spl_list() provides an interface for enumerating all stored playlists. This separates the internal playlist logic from the protocol specific function lsPlaylists().
-
- 14 Oct, 2008 1 commit
-
-
Max Kellermann authored
The mapper code has replaced these functions.
-
- 13 Oct, 2008 2 commits
-
-
Max Kellermann authored
isMusic() used to be a very inefficient function: with every invocation, it did another stat() on the specified file. There is only one caller, do the stat() there manually and use hasMusicSuffix() instead of isMusic().
-
Max Kellermann authored
The only caller of deletePlaylist() appends PLAYLIST_FILE_SUFFIX, so we can be sure it's already there. We don't need to stat the file, since unlink() does all the checking.
-
- 26 Sep, 2008 1 commit
-
-
Max Kellermann authored
SongList has been superseded by struct songvec.
-
- 23 Sep, 2008 1 commit
-
-
Eric Wong authored
LOC reduction and less noise makes things easier for tired old folks to follow.
-
- 07 Sep, 2008 1 commit
-
-
Max Kellermann authored
Pass the client struct instead of the raw file descriptor.
-
- 29 Aug, 2008 1 commit
-
-
Max Kellermann authored
And again, convert arguments to const.
-
- 26 Aug, 2008 2 commits
-
-
Max Kellermann authored
InputPlugin to decoder_plugin, and no camelCase.
-
Max Kellermann authored
"decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required.
-
- 26 Mar, 2008 2 commits
-
-
Max Kellermann authored
When dealing with in-memory lengths, the standard type "size_t" should be used. Missing one can be quite dangerous, because an attacker could provoke an integer under-/overflow, which may provide an attack vector. git-svn-id: https://svn.musicpd.org/mpd/trunk@7205 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
Max Kellermann authored
Local variables which are never read before the first assignment don't need initialization. Saves a few bytes of text. Also don't reset variables which are never read until function return. git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 05 Feb, 2008 1 commit
-
-
Max Kellermann authored
[ew: cleaned up the dirty union hack a bit] Signed-off-by:
Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 26 Jan, 2008 1 commit
-
-
Max Kellermann authored
Signed-off-by:
Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 03 Jan, 2008 1 commit
-
-
Eric Wong authored
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 28 Dec, 2007 1 commit
-
-
Eric Wong authored
thread-safety work in preparation for rewrite to use pthreads Expect no regressions against trunk (r7078), possibly minor performance improvements in update (due to fewer heap allocations), but increased stack usage. Applied the following patches: * maxpath_str for reentrancy (temporary fix, reverted) * path: start working on thread-safe variants of these methods * Re-entrancy work on path/character-set conversions * directory.c: exploreDirectory() use reentrant functions here * directory/update: more use of reentrant functions + cleanups * string_toupper: a strdup-less version of strDupToUpper * get_song_url: a static-variable-free version of getSongUrl() * Use reentrant/thread-safe get_song_url everywhere * replace rmp2amp with the reentrant version, rmp2amp_r * Get rid of the non-reentrant/non-thread-safe rpp2app, too. * buffer2array: assert strdup() returns a usable value in unit tests * replace utf8ToFsCharset and fsCharsetToUtf8 with thread-safe variants * fix storing playlists w/o absolute paths * parent_path(), a reentrant version of parentPath() * parentPath => parent_path for reentrancy and thread-safety * allow "make test" to automatically run embedded unit tests * remove convStrDup() and maxpath_str() * use MPD_PATH_MAX everywhere instead of MAXPATHLEN * path: get rid of appendSlash, pfx_path and just use pfx_dir * get_song_url: fix the ability to play songs in the top-level music_directory git-svn-id: https://svn.musicpd.org/mpd/trunk@7106 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-
- 05 Apr, 2007 1 commit
-
-
Avuton Olrich authored
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-