aboutsummaryrefslogtreecommitdiffstats
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-01-19command: added "sticker" commandMax Kellermann1-0/+72
The "sticker" command allows clients to query or manipulate the sticker database. This patch implements the sub-commands "get" and "set"; more will follow soon (enumeration), as well as extended "lsinfo" / "playlistinfo" versions.
2009-01-19update: delete stickers of deleted songsMax Kellermann1-0/+9
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).
2009-01-19sticker: added song sticker libraryMax Kellermann3-1/+122
This is a wrapper for the backend sticker library. It provides several glue functions which take a song object instead of type/uri.
2009-01-19sticker: new library for storing dynamic information about songsMax Kellermann6-0/+466
"Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them.
2009-01-19flac: include config.hMax Kellermann1-0/+1
The plugin queries build-time configuration variables, and should include config.h.
2009-01-18output: don't include conf.h from output_control.hMax Kellermann1-2/+1
Minimize header dependencies.
2009-01-18conf: added config_get_block_unsigned()Max Kellermann6-39/+33
Eliminate some more getBlockParam() invocations.
2009-01-18conf: added config_get_block_string()Max Kellermann11-98/+95
This replaces lots of getBlockParam() invocations.
2009-01-18jack: parse "ports" setting with g_strsplit()Max Kellermann1-20/+7
Don't modify the configured string.
2009-01-18jack: use audio_output_get_name()Max Kellermann1-11/+1
Determine the audio output name with audio_output_get_name() instead of obtaining the name from the configuration again.
2009-01-18conf: removed parseConfigFilePath()Max Kellermann3-46/+19
Use config_get_path() instead in mapper.c.
2009-01-18mixer: don't check for NULL before g_free()Max Kellermann2-16/+11
The g_free() function includes a NULL check. We don't have to do it twice.
2009-01-18daemon: removed unused variable "userpwd"Max Kellermann1-8/+4
This causes a segmentation fault...
2009-01-18daemon: pass "detach" flag to daemonize()Max Kellermann3-6/+7
This way, we don't have to pass the full "Options" object to daemonize().
2009-01-18daemon: added daemonize_init(), daemonize_finish()Max Kellermann3-45/+72
The constructor/destructor functions parse and free the configuration properly. This way, we don't have to load the pid file path more than once.
2009-01-18main: moved the save_state timer to state_file.cMax Kellermann2-20/+26
The state_file library should manage its own regular saves.
2009-01-18state_file: added state_file_init() and state_file_finish()Max Kellermann3-24/+40
The constructor/destructor interface should hide the functions read_state_file() and write_state_file().
2009-01-18state_file: include cleanupMax Kellermann2-3/+0
2009-01-18conf: added config_get_path()Max Kellermann3-5/+32
config_get_path() is an simpler interface than parseConfigFilePath().
2009-01-18removed playerData.cMax Kellermann5-107/+55
Fetch the configuration variables buffered_chunks and buffered_before_play just when they are needed.
2009-01-18main: moved code to daemon.cMax Kellermann3-98/+119
Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to daemon.c. These are daemonization functions.
2009-01-18mapper: make the music_directory optionalMax Kellermann6-31/+90
Without a music_directory, MPD is an excellent streaming client.
2009-01-18mapper: make the playlist directory optionalMax Kellermann5-16/+52
2009-01-18database: pass database file name to db_init()Max Kellermann3-40/+45
Don't include conf.h in database.c.
2009-01-18stats: use GTimer instead of time(NULL)Max Kellermann3-3/+13
time(NULL) shows the wrong results when the machine's clock is changed.
2009-01-18stats: use one db_walk() to obtain statsMax Kellermann3-73/+44
Don't use dbUtils.h functions. This reduces 4 full database walks to just one.
2009-01-18stats: added num_artists, num_albumsMax Kellermann2-8/+16
Don't recalculate the number of artists and albums each time a client requests statistics. Calculate that once in stats_update().
2009-01-18stats: no CamelCaseMax Kellermann4-23/+26
Renamed functions and types.
2009-01-17conf: replaced getConfigParamValue() with config_get_string()Max Kellermann5-9/+12
Don't return a writable pointer.
2009-01-17conf: replaced getBoolBlockParam() with config_get_block_bool()Max Kellermann4-21/+23
No "force" parameter, pass a default value instead.
2009-01-17conf: use config_get_bool() instead of getBoolConfigParam()Max Kellermann6-33/+16
2009-01-17conf: no CamelCase, part IMax Kellermann40-170/+204
Renamed functions, types, variables.
2009-01-17song: skip archive check for non-musicdir filesMax Kellermann1-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.
2009-01-17decoder_api: always notify_wait() for free chunksMax Kellermann1-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.
2009-01-17moved fallback APE/ID3 tag loader to song.cMax Kellermann7-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().
2009-01-17decoder_api: pass const pointer to decoder_data()Max Kellermann2-2/+3
2009-01-17pcm_convert: return PCM buffer from pcm_convert()Max Kellermann7-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.
2009-01-17music_pipe: removed music_pipe_append()Max Kellermann2-39/+0
The function is unused, since decoder_api() uses music_pipe_write() / music_pipe_expand() now.
2009-01-17decoder_api: use music_pipe_write() instead of music_pipe_append()Max Kellermann1-14/+33
Copy PCM data to the music_pipe_write() buffer, and apply replay gain / normalization to it, instead of manipulating the source buffer.
2009-01-17music_pipe: added functions music_pipe_write() and music_pipe_expand()Max Kellermann2-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().
2009-01-17oggvorbis: disable seeking on remote songsMax Kellermann1-5/+27
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.
2009-01-16decoder_api: added assertion on partial framesMax Kellermann1-0/+1
Decoder plugins must not send partial frames.
2009-01-16pcm_resample_fallback: corrected the sample calculationMax Kellermann1-6/+8
Due to rounding errors, it was possible that the fallback resampler returned partial frames.
2009-01-16playlist: don't store getBoolConfigParam() in a boolMax Kellermann1-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.
2009-01-16listen: explicitly include sys/socket.hMax Kellermann1-0/+1
2009-01-16player_control: fix shadow warning with older gccMax Kellermann1-1/+1
Older gcc versions complained about shadowed parameters in prototypes.
2009-01-16oss: evaluate the oss_open() return value properlyMax Kellermann1-1/+1
It returns bool, not int.
2009-01-16mixer: check param==NULL in the alsa and oss mixer codeMax Kellermann2-0/+7
When MPD starts without audio output configuration, the "param" variable is NULL. This triggers a segmentation fault in both mixer plugins.
2009-01-16Enable wav file streaming for ffmpeg input pluginQball Cow1-0/+1
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.