- 04 Feb, 2009 2 commits
-
-
Max Kellermann authored
If stickers are not configured at runtime, don't call sticker_song_delete().
-
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 1 commit
-
-
Max Kellermann authored
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
-
- 19 Jan, 2009 1 commit
-
-
Max Kellermann authored
When a song is deleted from the database, remove its sticker, too. What's still missing is some sort of garbage collector after a fresh database create (--create-db).
-
- 18 Jan, 2009 1 commit
-
-
Max Kellermann authored
Without a music_directory, MPD is an excellent streaming client.
-
- 08 Jan, 2009 4 commits
-
-
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.
-
Max Kellermann authored
Save an empty database, even if the music directory is empty.
-
- 04 Jan, 2009 13 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
The notify library is easier to use, and has no disadvantages.
-
Max Kellermann authored
-
Max Kellermann authored
Handle the DELETE and UPDATE events in separate callbacks: song_delete_event() safely deletes a song, and update_finished_event() is called when database update is complete.
-
Max Kellermann authored
GLib mandates that you initialize all GError objects with NULL prior to passing it.
-
Max Kellermann authored
Use GLib's g_build_filename() instead of pfx_dir().
-
Max Kellermann authored
-
Max Kellermann authored
directory_is_root() is cheaper than isRootDirectory(directory_get_path()).
-
Max Kellermann authored
-
Max Kellermann authored
The struct delete_data has only one member left and can be eliminated.
-
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
-
Max Kellermann authored
Reverse the condition: delete directories which don't exist anymore. This typo caused a slowdown during partial database update.
-
- 03 Jan, 2009 2 commits
-
-
Max Kellermann authored
WIN32 does have some kind of symbolic links (e.g. in NTFS), but the readlink() function is not available. Disable symlink checking for now.
-
Max Kellermann authored
-
- 02 Jan, 2009 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Don't use fixed stack buffers.
-
Max Kellermann authored
Don't use fixed stack buffers.
-
Max Kellermann authored
If we want to check whether a file is a directory, use GLib's g_file_test() instead of stat().
-
- 01 Jan, 2009 3 commits
-
-
Max Kellermann authored
Make the event_pipe (formerly main_notify) send/receive a set of events, with a callback for each one. The default event PIPE_EVENT_SIGNAL does not have a callback. It is still there for waking up the main thread, when it is waiting for the player thread.
-
Max Kellermann authored
Continuing the previous patch.
-
Max Kellermann authored
We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.
-
- 29 Dec, 2008 3 commits
-
-
Max Kellermann authored
-
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.
-
Viliam Mateicka authored
-
- 28 Dec, 2008 1 commit
-
-
Thomas Jansen authored
-
- 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 1 commit
-
-
Viliam Mateicka authored
-
- 08 Dec, 2008 1 commit
-
-
Avuton Olrich authored
MPD 0.13 and older followed all symbolic links. Although this can be a security problem (as it has always been), 0.14 should offer the same default behaviour as 0.13.
-
- 28 Nov, 2008 1 commit
-
-
Raphaël Rigo authored
The configuration options "follow_outside_symlinks" and "follow_inside_symlinks" let the user control whether MPD should follow symbolic links in the music directory. [mk: converted variables to "bool"; moved configuration to update_global_init()]
-
- 27 Nov, 2008 1 commit
-
-
Max Kellermann authored
Those two functions are called when MPD starts and exits. It allows the update library to perform global initialization and deinitialization. The implementations are currently empty.
-