- 13 Jan, 2009 7 commits
-
-
Max Kellermann authored
matchesAnMpdTagItemKey() broke when two tag items had the same prefix, because it did not check if the tag name ended after the prefix. Add a check for the colon and the space after the tag name.
-
Joe Milbourn authored
If http_proxy_{host, port, user, password} are provided in mpd.conf they are not passed on to libcurl. As a result mpd cannot stream from behind an http proxy. The attached patch `http_proxy.patch` makes the relevant calls to curl_easy_setopt(...) for all proxy configuration parameters, but is only tested for host and port.
-
Max Kellermann authored
There is only one valid error condition for setsid(): when the current process is already the process group leader. This is non-critical.
-
Max Kellermann authored
To detach from the parent process, fork once and make the old process exit. No need to do that twice.
-
Max Kellermann authored
MPD's shuffling algorithm was not implemented well: it considers songs which were already swapped, making it somewhat non-random. Fix the Fisher-Yates shuffle algorithm by passing the proper bounds to the PRNG.
-
Max Kellermann authored
When decoder_run_song() (decoder_thread.c) waits for the input stream to become ready, it did that in a busy loop. Add a select() call to input_curl_buffer() during connect/handshake (i.e. before the first chunk of body data was received), to let the CPU relax.
-
Max Kellermann authored
When the decoder thread is waiting for free chunks in the music pipe, don't ignore the STOP command. Just return dc.command without further checks.
-
- 12 Jan, 2009 1 commit
-
-
Max Kellermann authored
MPD will (optionall) use sqlite databases in the future. Add a configure option to enable that. There is no code yet to really use sqlite, so the practical use of this patch is limited.
-
- 11 Jan, 2009 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Viliam Mateicka authored
removing mixer_reconfigure memmory leak, fixing configure of alsa and oss mixer (passing parameters)
-
Max Kellermann authored
If a range is "-1", display the whole list. This behavior is undocumented, but some clients rely on it.
-
- 10 Jan, 2009 13 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Free memory before exiting.
-
Max Kellermann authored
Free memory before exiting.
-
Max Kellermann authored
Make the listen socket an object, allowing us to add more fields later. Convert listenSockets into a simple linked list.
-
Max Kellermann authored
-
Max Kellermann authored
-
Viliam Mateicka authored
This patch tryes to introduce pluggable mixer (struct mixer_plugin) along with some basic infrastructure (mixer_* functions). Instance of mixer (struct mixer) is used in alsa and oss output plugin
-
Max Kellermann authored
A song index cannot be negative. Also require the second parameter to be valid.
-
Max Kellermann authored
In a range "start:end", "end" itself should not be included. Use the same semantics as other languages implementing ranges, e.g. Python.
-
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]]
-
Thomas Jansen authored
A range argument looks like start[:end] and is used to specify the entries of a list that should be returned (rather than the whole list).
-
- 08 Jan, 2009 8 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Don't use fixed static buffers. GLib allocates a new string for us anyway, let's just return this one instead of copying it.
-
Max Kellermann authored
The archive code was disabled, because config.h was not included and thus ENABLE_ARCHIVE was not defined.
-
Stepan Pologov authored
-
Max Kellermann authored
Save an empty database, even if the music directory is empty.
-
- 07 Jan, 2009 7 commits
-
-
Max Kellermann authored
Use the PCM buffer library for the libsamplerate output buffer.
-
Max Kellermann authored
Return a temporary buffer from pcm_resample_*() and pcm_convert().
-
Max Kellermann authored
Replace a "static" buffer with the PCM buffer library.
-
Max Kellermann authored
Replace a "static" buffer with the PCM buffer library.
-
Max Kellermann authored
This library allocates temporary buffers for storing PCM conversion results. It should replace all those "static" buffer variables which are racy and never freed.
-
Max Kellermann authored
Be sure that the output thread has quite before we start destructing the output object.
-
Max Kellermann authored
Free memory allocated by the notify object (GMutex, GCond) when it's not used by the output object anymore.
-