- 11 Nov, 2013 5 commits
-
-
Max Kellermann authored
Required for building with libc++.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 10 Nov, 2013 1 commit
-
-
Jurgen Kramer authored
-
- 09 Nov, 2013 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 08 Nov, 2013 10 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
bzip2-compressed tarballs are obsolete, xz is better and widely understood.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Commit 77c63511 caused MPD to become stuck right after a song change. The problem was that at some point, the MusicBuffer became full, and the DecoderThread working on the next song waits for the PlayerThread. However, the PlayerThread was stuck in a loop of g_usleep() calls, and never bothered to tell the DecoderThread that the MusicBuffer is not full anymore. This bug is very old, but its chance to occur went from nearly 0% to nearly 100%. The fix is to wake up the DecoderThread before waiting for it. As a side effect, I replaced the g_usleep() call with a Cond::Wait() call.
-
Max Kellermann authored
Remove the "do_wait" parameter which is always true. Check only command==NONE and merge the "return" statements.
-
Max Kellermann authored
Nothing of interest happens here. No need to wake up the player.
-
Max Kellermann authored
-
- 07 Nov, 2013 10 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Allows big-endian users to configure the fallback byte order to little-endian. Without this setting, MPD assumes native byte order if the CD drive can't decide.
-
Max Kellermann authored
Avoid closing it twice.
-
Max Kellermann authored
Fixes a crash bug. See code comment.
-
- 06 Nov, 2013 12 commits
-
-
Max Kellermann authored
Wake up the OutputThread only if it hasn't already been woken up and if it isn't already in the playback loop.
-
Max Kellermann authored
After the number of decoded chunks has fallen below the threshold, the PlayerThread woke up the DecoderThread over and over. This commit adds a boolean flag that avoids these duplicate wakeups, and thus reduces the number of system calls.
-
Max Kellermann authored
Wake up the PlayerThread only if it is really waiting for the decoder. This greatly reduces the number of system calls in the DecoderThread.
-
Max Kellermann authored
Must hold the Mutex to signal the Cond object safely.
-
Max Kellermann authored
Merge duplicate code.
-
Max Kellermann authored
We have a better solution now.
-
Max Kellermann authored
Add a new CommandResult code called "FINISH" which, unlike "CLOSE", will attempt to flush the output buffer. This is a one-shot attempt; it will do one write, and not try again.
-
Max Kellermann authored
Postpone the write using IdleMonitor instead of scheduling a write event. This reduces the number of system calls, because we don't need to register and unregister the write event in epoll.
-
Max Kellermann authored
.. and rename it to Flush().
-
Max Kellermann authored
For some reason, this got lost in commit 975deca8. Re-enabling this fixes stuttering at the beginning of radio streams.
-
Max Kellermann authored
Prior to version 0.3, the "length" callback returned a "long" instead of AFfileoffset. Now that this API bug fix is a few years old, let's drop 0.2 support for good.
-
Max Kellermann authored
Migrate from the old curl_multi_perform() API to the newer curl_multi_socket_action() API (since CURL 7.16). This allows working around a bug with HTTP redirections with epoll: when CURL closes a socket and the new one happens to have the same file number, MPD did not have a chance to remove the old one from epoll and subsequently attempted to use EPOLL_CTL_MOD, which was not allowed by epoll, because it's a new socket now.
-