aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* state_file: added state_file_init() and state_file_finish()Max Kellermann2009-01-183-24/+40
| | | | | The constructor/destructor interface should hide the functions read_state_file() and write_state_file().
* state_file: include cleanupMax Kellermann2009-01-182-3/+0
|
* conf: added config_get_path()Max Kellermann2009-01-183-5/+32
| | | | config_get_path() is an simpler interface than parseConfigFilePath().
* removed playerData.cMax Kellermann2009-01-185-107/+55
| | | | | Fetch the configuration variables buffered_chunks and buffered_before_play just when they are needed.
* main: moved code to daemon.cMax Kellermann2009-01-183-98/+119
| | | | | Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to daemon.c. These are daemonization functions.
* mapper: make the music_directory optionalMax Kellermann2009-01-188-35/+95
| | | | Without a music_directory, MPD is an excellent streaming client.
* mapper: make the playlist directory optionalMax Kellermann2009-01-187-19/+57
|
* database: pass database file name to db_init()Max Kellermann2009-01-183-40/+45
| | | | Don't include conf.h in database.c.
* stats: use GTimer instead of time(NULL)Max Kellermann2009-01-183-3/+13
| | | | | time(NULL) shows the wrong results when the machine's clock is changed.
* stats: use one db_walk() to obtain statsMax Kellermann2009-01-183-73/+44
| | | | | Don't use dbUtils.h functions. This reduces 4 full database walks to just one.
* stats: added num_artists, num_albumsMax Kellermann2009-01-182-8/+16
| | | | | Don't recalculate the number of artists and albums each time a client requests statistics. Calculate that once in stats_update().
* stats: no CamelCaseMax Kellermann2009-01-184-23/+26
| | | | Renamed functions and types.
* mpd version 0.14.1Avuton Olrich2009-01-181-1/+1
|
* conf: replaced getConfigParamValue() with config_get_string()Max Kellermann2009-01-175-9/+12
| | | | Don't return a writable pointer.
* conf: replaced getBoolBlockParam() with config_get_block_bool()Max Kellermann2009-01-174-21/+23
| | | | No "force" parameter, pass a default value instead.
* conf: use config_get_bool() instead of getBoolConfigParam()Max Kellermann2009-01-176-33/+16
|
* conf: no CamelCase, part IMax Kellermann2009-01-1740-170/+204
| | | | Renamed functions, types, variables.
* song: skip archive check for non-musicdir filesMax Kellermann2009-01-171-1/+1
| | | | | | If a song is not within the music directory ("file:///..."), it has no "parent directory". The archive code nonetheless dereferences the parent pointer, causing a segmentation fault. Check parent!=NULL.
* decoder_api: always notify_wait() for free chunksMax Kellermann2009-01-171-2/+1
| | | | | | | One of the previous patches made MPD consume 100% CPU in a busy wait: when the music_pipe was full, it did not wait (with notify_wait()) for free chunks, because a variable has a different meaning now. Always pass "true" as the "wait" parameter.
* moved fallback APE/ID3 tag loader to song.cMax Kellermann2009-01-177-58/+55
| | | | | | Some plugins used the APE or ID3 tag loader as a fallback when their own methods of loading tags did not work. Move this code out of all decoder plugins, into song_file_update().
* decoder_api: pass const pointer to decoder_data()Max Kellermann2009-01-172-2/+3
|
* pcm_convert: return PCM buffer from pcm_convert()Max Kellermann2009-01-177-86/+43
| | | | | | Removed yet another superfluous buffer layer: return the PCM buffer from pcm_convert() instead of copying PCM data into the caller-supplied buffer.
* music_pipe: removed music_pipe_append()Max Kellermann2009-01-172-39/+0
| | | | | The function is unused, since decoder_api() uses music_pipe_write() / music_pipe_expand() now.
* decoder_api: use music_pipe_write() instead of music_pipe_append()Max Kellermann2009-01-171-14/+33
| | | | | Copy PCM data to the music_pipe_write() buffer, and apply replay gain / normalization to it, instead of manipulating the source buffer.
* music_pipe: added functions music_pipe_write() and music_pipe_expand()Max Kellermann2009-01-172-32/+64
| | | | | | | This new API gives the caller a writable buffer to the music pipe chunk. This may allow the caller to eliminate several buffer copies, because it may manipulate the returned buffer, until it calls music_pipe_expand().
* oggvorbis: disable seeking on remote songsMax Kellermann2009-01-172-5/+28
| | | | | | | | | | | | When libvorbis knows that a song is seekable, it seeks around like crazy in the file before starting to decode it. This is very expensive on remote HTTP resources, and delays MPD for 10 or 20 seconds. This patch disables seeking on remote songs, because the advantages of quickly playing a song seem to weigh more than the theoretical ability of seeking for most MPD users. If users feel this feature is needed, we will make a configuration option for that.
* decoder_api: added assertion on partial framesMax Kellermann2009-01-161-0/+1
| | | | Decoder plugins must not send partial frames.
* pcm_resample_fallback: corrected the sample calculationMax Kellermann2009-01-162-6/+9
| | | | | Due to rounding errors, it was possible that the fallback resampler returned partial frames.
* playlist: don't store getBoolConfigParam() in a boolMax Kellermann2009-01-161-3/+5
| | | | | | getBoolConfigParam() returns an int. It is not possible to check for CONF_BOOL_UNSET after it has been assigned to a bool; use a temporary int value for that.
* listen: explicitly include sys/socket.hMax Kellermann2009-01-161-0/+1
|
* player_control: fix shadow warning with older gccMax Kellermann2009-01-161-1/+1
| | | | Older gcc versions complained about shadowed parameters in prototypes.
* oss: evaluate the oss_open() return value properlyMax Kellermann2009-01-161-1/+1
| | | | It returns bool, not int.
* mixer: check param==NULL in the alsa and oss mixer codeMax Kellermann2009-01-162-0/+7
| | | | | | When MPD starts without audio output configuration, the "param" variable is NULL. This triggers a segmentation fault in both mixer plugins.
* Enable wav file streaming for ffmpeg input pluginQball Cow2009-01-161-0/+1
|
* oggvorbis: define HAVE_OGGVORBIS when tremor is enabledMax Kellermann2009-01-152-1/+4
| | | | When tremor (libvorbisidec) is used, HAVE_OGGVORBIS was not defined.
* flac: map "Album Artist" to "AlbumArtist"Rasmus Steinke2009-01-151-1/+3
| | | | | This patch allows mpd to recognise the albumartist tag in the way foobar2000 and others write it to files.
* flac: splitted flac_copy_vorbis_comment()Max Kellermann2009-01-151-37/+38
| | | | | Splitted flac_copy_vorbis_comment() into flac_copy_comment() and flac_copy_comment().
* flac: moved code to flac_comment_value()Max Kellermann2009-01-151-5/+26
| | | | | Simplify flac_copy_vorbis_comment() by moving the comment identification code out.
* flac: always allocate tag objectMax Kellermann2009-01-154-31/+43
| | | | | Free the tag object when it turns out to be empty. This simplifies several functions and APIs.
* tag: added tag_is_defined()Max Kellermann2009-01-151-0/+9
| | | | | tag_is_defined() checks whether there is any information in the tag object.
* flac: use bool instead of intMax Kellermann2009-01-152-42/+37
|
* flac: removed "vorbis_comment_found" flagMax Kellermann2009-01-151-10/+4
| | | | Use tag_is_empty() instead.
* flac: no CamelCaseMax Kellermann2009-01-155-190/+208
| | | | Renamed types, functions, variables.
* input_curl: don't call input_curl_select() when already at EOFMax Kellermann2009-01-151-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().
* input_curl: set "ready" flag on EOFMax Kellermann2009-01-152-0/+6
| | | | Set the "ready" flag for empty resources.
* input_curl: call curl_multi_info_read() in constructorMax Kellermann2009-01-152-0/+7
| | | | | To check for early connect failures, call curl_multi_info_read() in the constructor input_curl_open(). This fixes an assertion failure.
* NEWS: merge from v0.14.xMax Kellermann2009-01-151-3/+19
| | | | Copy changelog items from the upcoming 0.14.1 release.
* input_curl: added fallback for g_queue_clear()Max Kellermann2009-01-151-0/+5
| | | | | g_queue_clear() was introduced in GLib 2.14. Add a macro hack for older GLib versions to emulate it.
* log, pcm_convert: added return statements after g_error()Max Kellermann2009-01-152-1/+4
| | | | | gcc doesn't know that g_error() never returns. Work around the gcc warning.
* mapper: check if g_get_user_special_dir() is supported by GLibMax Kellermann2009-01-151-0/+2
| | | | | g_get_user_special_dir() was introduced with GLib 2.14. Don't use it in older versions.