- 05 Nov, 2008 10 commits
-
-
Max Kellermann authored
Initialize libc's locale functions. Currently, we are only interested in LC_CTYPE (character classification), because this is what is used by GLib's g_get_charset().
-
Max Kellermann authored
Make the local variable "charset" const, and don't duplicate its value. It is already duplicated by path_set_fs_charset().
-
Max Kellermann authored
GLib provides the function g_get_filename_charsets() which determines the file system character set. This changes MPD's fallback: GLib prefers UTF-8 as a fallback. MPD used to fall back to ISO Latin 1.
-
Max Kellermann authored
Rename variables and functions.
-
Max Kellermann authored
Call g_thread_init() from main() to enable the GLib features which make it thread safe.
-
Max Kellermann authored
Removed closeAllFDs(). The caller is responsible for closing all file handles.
-
Max Kellermann authored
The output thread automatically waits some time before retrying to open the device. Don't duplicate this check in the pulse plugin.
-
Max Kellermann authored
The pulse plugin crashed with a segmentation fault when the pulse server was killed.
-
Max Kellermann authored
libwavpack expects the read_bytes() stream method to fill the whole buffer, and fails badly when we return a partial read (i.e. not enough data available yet). This caused wavpack streams to break. Re-implement the buffer filling loop.
-
Max Kellermann authored
The input_stream object is opened and closed by the caller.
-
- 04 Nov, 2008 25 commits
-
-
Max Kellermann authored
Disable the ffmpeg decoder plugin if avcodec_decode_audio2() is not available.
-
Max Kellermann authored
Instead of checking the stream_types bit set, we can simply check whether the methods stream_decode() and file_decode() are implemented.
-
Max Kellermann authored
The number of tag types is known at compile time. Use the GLib macro G_N_ELEMENTS instead of having a NULL element at the end.
-
Max Kellermann authored
Don't store tag type values in a plain integer, use the proper enum.
-
Max Kellermann authored
Replace deprecated code with GLib.
-
Max Kellermann authored
Instead of manually waiting for the input stream to become ready (to catch server errors), just read the first byte. Since the wavpack_input has the capability to push back one byte, we can simply re-feed it. Advantage is: decoder_read() handles everything for us, i.e. waiting for the stream, polling for decoder commands and error handling.
-
Max Kellermann authored
Use boolean true/false instead of 1/0.
-
Max Kellermann authored
Renamed functions and variables.
-
Max Kellermann authored
Fixed the indent of the switch statement in format_samples_int().
-
Max Kellermann authored
Eliminate a superfluous decoder_get_command() call. decoder_data() already returns the command.
-
Max Kellermann authored
Removed the duplicate audio_format initialization.
-
Max Kellermann authored
decoder_read() handles decoder commands, and should be used in decoder plugins.
-
Max Kellermann authored
We need the decoder object, so we have to begin passing a new struct to these callbacks, instead of only the pointer to the input_stream object.
-
Max Kellermann authored
Replace deprecated code with GLib.
-
Max Kellermann authored
The API of mp4_load_tag() was strange: it always returned a tag object, no matter if a tag was found in the file; the existence of a tag was indicated with the tag_found integer reference. This flag is superfluous, since we can simply check whether the tag is empty or not.
-
Max Kellermann authored
Allocate the mp4ff_callback_t object on the stack. This is easier to handle, since we don't have to free it. Incidentally, this fixes a memory leak in mp4_load_tag().
-
Max Kellermann authored
Renamed functions and variables.
-
Max Kellermann authored
The function decoder_read() already cares about the decoder command, and loops until data is available. Reduced mpd_ffmpeg_read() to no more than the decoder_read() call.
-
Max Kellermann authored
That variable is never used except during initialization in ffmpeg_helper().
-
Max Kellermann authored
-
Max Kellermann authored
Renamed variables.
-
Max Kellermann authored
-
Max Kellermann authored
Fix prototypes and unused variables.
-
Max Kellermann authored
The OS X output plugin wasn't adapted to the new output plugin yet, because I had no Mac to test...
-
Max Kellermann authored
Although there is no AC_SUBST when $enable_mp4=no, autoconf substitutes its value in Makefile.am. Clear it in this case.
-
- 03 Nov, 2008 5 commits
-
-
Max Kellermann authored
dc.error wasn't updated when the input stream failed to initialize.
-
Max Kellermann authored
The function curl_multi_info_read() provides access to errors from the curl easy interface.
-
Max Kellermann authored
-
Max Kellermann authored
Removed the "volatile" attributes from several variables which are not important for synchronization.
-
Max Kellermann authored
Renamed variables and internal functions. Most of the player_control.h API remains in CamelCase for now.
-