aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-01-15flac: map "Album Artist" to "AlbumArtist"Rasmus Steinke1-1/+3
This patch allows mpd to recognise the albumartist tag in the way foobar2000 and others write it to files.
2009-01-15flac: splitted flac_copy_vorbis_comment()Max Kellermann1-37/+38
Splitted flac_copy_vorbis_comment() into flac_copy_comment() and flac_copy_comment().
2009-01-15flac: moved code to flac_comment_value()Max Kellermann1-5/+26
Simplify flac_copy_vorbis_comment() by moving the comment identification code out.
2009-01-15flac: always allocate tag objectMax Kellermann4-31/+43
Free the tag object when it turns out to be empty. This simplifies several functions and APIs.
2009-01-15tag: added tag_is_defined()Max Kellermann1-0/+9
tag_is_defined() checks whether there is any information in the tag object.
2009-01-15flac: use bool instead of intMax Kellermann2-42/+37
2009-01-15flac: removed "vorbis_comment_found" flagMax Kellermann1-10/+4
Use tag_is_empty() instead.
2009-01-15flac: no CamelCaseMax Kellermann5-190/+208
Renamed types, functions, variables.
2009-01-15input_curl: don't call input_curl_select() when already at EOFMax Kellermann1-1/+3
Calling input_curl_select() after EOF has been reached causes an assertion failure. This can happen if the HTTP response is empty. Check c->eof before calling input_curl_select().
2009-01-15input_curl: set "ready" flag on EOFMax Kellermann1-0/+5
Set the "ready" flag for empty resources.
2009-01-15input_curl: call curl_multi_info_read() in constructorMax Kellermann1-0/+6
To check for early connect failures, call curl_multi_info_read() in the constructor input_curl_open(). This fixes an assertion failure.
2009-01-15input_curl: added fallback for g_queue_clear()Max Kellermann1-0/+5
g_queue_clear() was introduced in GLib 2.14. Add a macro hack for older GLib versions to emulate it.
2009-01-15log, pcm_convert: added return statements after g_error()Max Kellermann2-1/+4
gcc doesn't know that g_error() never returns. Work around the gcc warning.
2009-01-15mapper: check if g_get_user_special_dir() is supported by GLibMax Kellermann1-0/+2
g_get_user_special_dir() was introduced with GLib 2.14. Don't use it in older versions.
2009-01-15pcm_convert: removed unused variable "dest_size"Max Kellermann1-4/+2
dest_size is only used in an assertion. Remove its declaration and move the formula into the assertion.
2009-01-15decoder_api: added G_GNUC_UNUSED attribute to decoder_initialized()Max Kellermann1-1/+1
In NDEBUG, the parameter "decoder" is not used.
2009-01-15listen: don't compile ipv6Supported() if !HAVE_IPV6Max Kellermann1-4/+2
The function ipv6Supported() is not used at all when IPv6 support was disabled at compile time.
2009-01-15oggvorbis: map "Album Artist" to "AlbumArtist"Rasmus Steinke1-1/+3
This patch allows mpd to recognise the albumartist tag in the way foobar2000 and others write it to files.
2009-01-15songvec: sort songs by disc and track numberMax Kellermann1-0/+46
Sorting songs by file name does not make much sense. Most of the time, users want to add songs in track order to the playlist.
2009-01-15tag: added tag_get_value()Max Kellermann2-3/+16
2009-01-15dirvec, songvec: sort using g_utf8_collate()Max Kellermann2-2/+2
Path names in the directory and song structs are always encoded in UTF-8. Don't use strcmp(), it cannot handle UTF-8 characters properly. Use GLib's UTF-8 aware g_utf8_collate() function for that.
2009-01-14shout: enlarge buffer size to 32 kBAntoine Beaupré1-1/+1
I was having problems with shoutcast stream outputs before applying the attached patch, which enlarges the shoutcast output buffer. Ideally, this should be configurable, but this resolves the issue for my needs.
2009-01-14oggvorbis: use g_ascii_strncasecmp() instead of strncasecmp()Max Kellermann1-3/+3
Don't depend on the daemon's locale settings. Comment names are ASCII.
2009-01-14oggvorbis: moved tag look into vorbis_parse_comment()Max Kellermann1-23/+13
vorbis_parse_comment() should be a function which converts one comment to a tag item. It should do everything required to do the conversion, including looping over all possible tag types.
2009-01-14oggvorbis: moved code to vorbis_copy_comment()Max Kellermann1-9/+21
2009-01-14oggvorbis: use vorbis_comment_value() in vorbis_parse_comment()Max Kellermann1-5/+4
Eliminate some duplicate code.
2009-01-14oggvorbis: always allocate a tag objectMax Kellermann1-8/+14
Always allocate a new tag object before parsing the vorbis comments; free it when it turns out to be empty. This simplifies the code a bit.
2009-01-14oggvorbis: no CamelCaseMax Kellermann2-61/+65
Renamed functions and variables.
2009-01-14oggvorbis: use boolMax Kellermann1-5/+5
Make ogg_parseCommentAddToTag() return bool instead of unsigned int.
2009-01-14tag_id3: added support for the "album artist" tagDaniele Sluijters1-0/+12
Read the id3 tags "TPE2" and "TSO2" into the "album artist" tag.
2009-01-14allow ~/.mpd/mpd.conf as alternate config fileJérôme Quelin1-8/+15
mpd uses some additional files to work, such as pid_file, state_file, db_file, etc. when running mpd as non-root user, it is often that those files end in ~/.mpd in that case, we end up with 2 entries in a user's home, .mpdconf and .mpd - which clutters homedirs. this patch allows ~/.mpd/mpd.conf as an alternative to ~/.mpdconf, allowing for a cleaner homedir
2009-01-14song_save: don't fail on empty tag valuesMax Kellermann1-2/+2
If a tag value is an empty string, the space after the colon was removed by g_strchomp(). Fix this by removing the space check and using g_strchug() on the return value.
2009-01-14song_save: return value pointer from matchesAnMpdTagItemKey()Max Kellermann1-8/+8
The matchesAnMpdTagItemKey() API becomes more powerful and flexible if the return value is the value pointer instead of a boolean. It also removes (invalid and dangerous) assumptions about the string from its caller.
2009-01-14song_save: itemType is "enum tag_type", not "int"Max Kellermann1-2/+2
2009-01-14playlist: safely search the playlist for deleted songMax Kellermann1-1/+1
When a song file is deleted during database update, all pointers to it must be removed from the playlist. The "for" loop in deleteASongFromPlaylist() did not deal with multiple copies of the deleted song properly, and left instances of the (to-be-invalidated) pointer in. Fix this by reversing the loop.
2009-01-13tag: added core support for the "album artist" tagMax Kellermann2-0/+2
Added TAG_ITEM_ALBUM_ARTIST. With this patch, MPD should be able to read the (inofficial) "ALBUMARTIST" Vorbis comment. Implementations in other decoder plugins will follow soon.
2009-01-13song_save: check for colon and space when loading a tagMax Kellermann1-2/+4
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.
2009-01-13input_curl: honour http_proxy_* config directivesJoe Milbourn1-0/+30
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.
2009-01-13daemon: don't check the setsid() return valueMax Kellermann1-3/+1
There is only one valid error condition for setsid(): when the current process is already the process group leader. This is non-critical.
2009-01-13daemon: don't fork twice to daemonizeMax Kellermann1-8/+0
To detach from the parent process, fork once and make the old process exit. No need to do that twice.
2009-01-13playlist: implement Fisher-Yates shuffle properlyMax Kellermann1-2/+2
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.
2009-01-13input_curl: use select() to eliminate busy loop during connectMax Kellermann1-0/+6
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.
2009-01-13decoder_api: don't ignore DECODE_COMMAND_STOPMax Kellermann1-2/+1
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.
2009-01-12configure.ac: added the --enable-sqlite optionMax Kellermann1-0/+2
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.
2009-01-11Makefile.am: moved C/CPP/LDFLAGS upMax Kellermann1-26/+26
2009-01-11removing mixer_reconfigure memmory leak, fixing configure of alsa and oss ↵Viliam Mateicka5-9/+32
mixer (passing parameters)
2009-01-11command: restore the "playlistinfo -1" behaviorMax Kellermann1-0/+8
If a range is "-1", display the whole list. This behavior is undocumented, but some clients rely on it.
2009-01-10main: remove "save_state" timer event on exitMax Kellermann1-1/+4
2009-01-10client: remove "expire" event on exitMax Kellermann1-0/+3
2009-01-10event_pipe: remove the GLib source from the main contextMax Kellermann1-1/+5
Free memory before exiting.