- 21 Jan, 2012 1 commit
-
-
Max Kellermann authored
-
- 10 Oct, 2011 1 commit
-
-
Max Kellermann authored
-
- 08 Oct, 2011 1 commit
-
-
Max Kellermann authored
Load the samplerate_converter on MPD startup. Fail if the converter name is invalid.
-
- 10 Sep, 2011 1 commit
-
-
Max Kellermann authored
First draft, not really pluggable currently - hard-coded to use the "simple" plugin, and calls several of its internal functions. The API is very simple currently, all searches are still performed over the root "directory" object. Future changes to the API will move those search implementations into the plugin, to allow more efficient implementations, or implementations that don't have the whole tree in memory all the time.
-
- 09 Sep, 2011 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
config_get_path() was somewhat flawed, because it pretended to be a function, when it really had a side effect. The second flaw was that it did not return the parser error, instead it aborted the whole process, which is bad style. The new function returns a duplicated (modified) string that must be freed by the caller, and returns a GError on failure.
-
Max Kellermann authored
-
- 24 Aug, 2011 1 commit
-
-
Max Kellermann authored
Try to eliminate the remaining blocking I/O.
-
- 29 Jan, 2011 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 10 Jan, 2011 1 commit
-
-
Max Kellermann authored
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
-
- 25 Sep, 2010 1 commit
-
-
Thomas Jansen authored
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
-
- 23 Sep, 2010 1 commit
-
-
Denis Krjuchkov authored
I've added PIPE_EVENT_SHUTDOWN because calling g_main_loop_quit() do not work when called from another thread. Main thread was sleeping in g_poll() so I needed some way to wake it up. By some strange reason call close(event_pipe[0]) in event_pipe_deinit() hangs. In current implementation that code never reached so that was not a problem :-) I've added a conditional to leave event_pipe[0] open on Win32.
-
- 13 Apr, 2010 1 commit
-
-
Max Kellermann authored
Limits the depth of the watched directories. This is useful to keep resource usage down and speed up MPD startup.
-
- 04 Jan, 2010 1 commit
-
-
Max Kellermann authored
-
- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 25 Dec, 2009 1 commit
-
-
Max Kellermann authored
Use the plugin instead of the glue code in normalize.c. This is used wrapped inside a "autoconv" filter, to enable normalization for all input file formats.
-
- 14 Dec, 2009 2 commits
-
-
Max Kellermann authored
Not used by any plugin currently, but this eliminates the g_error() call in input_plugin_config(), so it's worth it.
-
Max Kellermann authored
-
- 12 Nov, 2009 1 commit
-
-
Max Kellermann authored
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.
-
- 10 Nov, 2009 1 commit
-
-
Max Kellermann authored
Drop the required GLib version from 2.16 to 2.12, because many current systems still don't have GLib 2.16. This requires several new compatibility functions in glib_compat.h.
-
- 31 Oct, 2009 2 commits
-
-
Max Kellermann authored
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
-
Max Kellermann authored
Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread.
-
- 26 Oct, 2009 1 commit
-
-
Viliam Mateicka authored
-
- 24 Oct, 2009 1 commit
-
-
Viliam Mateicka authored
-
- 23 Oct, 2009 1 commit
-
-
Max Kellermann authored
With these methods, an output plugin can allocate some global resources only if it is actually enabled. The method enable() is called after daemonization, which allows for more sophisticated resource allocation during that method.
-
- 22 Oct, 2009 2 commits
-
-
Max Kellermann authored
There's no point in clearing the audio format before exiting.
-
Max Kellermann authored
This way, the function call in the main() function does not need another pair of #ifdef/#endif.
-
- 20 Oct, 2009 1 commit
-
-
Max Kellermann authored
I'm not sure about the advantages of calling g_set_application_name(), because I don't use a task manager (except for ps and kill), but it sure doesn't hurt.
-
- 13 Oct, 2009 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Accidently, MPD has been using several GLib 2.16 functions for a while, and nobody noticed yet. To simplify the code base, let's bump the minimum GLib version for MPD to 2.16. That version is old enough, and it's reasonable to expect users to have it.
-
- 08 Oct, 2009 1 commit
-
-
Max Kellermann authored
-
- 25 Sep, 2009 1 commit
-
-
Max Kellermann authored
This patch implements a light-weight inotify library, and watches all directories below the music directory. It updates all directories where files changed after a delay of 5 seconds.
-
- 24 Sep, 2009 4 commits
-
-
Max Kellermann authored
"rescan" is the same as "update", but it discards existing songs in the database.
-
Max Kellermann authored
Don't call g_error(), which will abort the process and dump core.
-
Max Kellermann authored
Don't call g_error(), which will abort the process and dump core.
-
Max Kellermann authored
-
- 20 Sep, 2009 1 commit
-
-
Max Kellermann authored
Both options are deprecated, and should not be used anymore. Many users get confused by their presence.
-
- 22 Jul, 2009 1 commit
-
-
Eugeny N Dzhurinsky authored
On FreeBSD, "stderr" is a macro, and using this name for a struct member breaks the build. [mk: renamed _stderr to log_stderr]
-
- 19 Jul, 2009 1 commit
-
-
Michal Nazarewicz authored
The "group" configuration option is similar to "user" as it sets user set what group MPD shall run as. With "user" option, MPD changed GID to the GID of the user, however, more control could be desired. Moreover, the patch changes the way of checking whether no setuid(2)/setgid(2) is required -- previously user names were compered, now UID and GIDs are compered (ie. the one we already have (getuid(2)/getgid(2)) with the one we want to change to).
-