Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2008-12-28 | mikmod: use Glib instead of utils.h/log.h | Max Kellermann | 1 | -9/+6 | |
2008-12-28 | mikmod: convert mod_Data.audio_buffer to a static array | Max Kellermann | 1 | -3/+1 | |
Don't do two allocations for the mod_Data structure. | |||||
2008-12-28 | decoder: new plugin using modplug library | Viliam Mateicka | 1 | -0/+200 | |
2008-12-28 | Add RVA2 tag support to MPD | Pauli Virtanen | 1 | -0/+94 | |
This patch adds RVA2 (relative volume adjustment) tag support to mpd, as a fallback if no replaygain tags are found. The code is almost directly from madplay (GPL). RVA2 tags are generated for example by the "normalize" utility. Updated by: Avuton Olrich <avuton@gmail.com> | |||||
2008-12-27 | audiofile: don't close onput stream in libaudiofile destroy() | Max Kellermann | 1 | -2/+3 | |
The input_stream object should only be closed by the MPD core (i.e. decoder_thread.c / decoder_run()). A decoder plugin which attempts to close it will result in a segmentation fault. | |||||
2008-12-24 | ffmpeg: case AV_NOPTS_VALUE to int64_t | Max Kellermann | 1 | -2/+2 | |
The old code casted it to a 32 bit integer, which cut off bits. AVFormatContext.duration is a int64_t, so use this type. | |||||
2008-12-24 | ffmpeg: don't assign "0" to pointer | Max Kellermann | 1 | -1/+1 | |
Use NULL instead. Found by sparse. | |||||
2008-12-24 | mp3: "tag" argument is unused when libid3tag is disabled | Max Kellermann | 1 | -2/+2 | |
Add G_GNUC_UNUSED attributes. | |||||
2008-12-15 | ffmpeg: fixing ffmpeg_send_packet to allow multipackets | Viliam Mateicka | 1 | -16/+32 | |
2008-12-15 | ffmpeg: adding APE support | Viliam Mateicka | 1 | -2/+3 | |
2008-12-08 | mp3: declare variables as "enum mp3_action" | Max Kellermann | 1 | -2/+2 | |
Variables which hold one of the DECODE_* values should be declared as "enum mp3_action" instead of "int". | |||||
2008-12-03 | decoder: audiofile plugin using input stream instead of file | Viliam Mateicka | 1 | -15/+74 | |
2008-11-27 | mp3: use GLib logging | Max Kellermann | 1 | -19/+18 | |
Use GLib's g_warning(), ... instead of MPD's deprecated log.h. | |||||
2008-11-24 | flac, mpc, ogg, wavpack: include unistd.h for SEEK_SET | Max Kellermann | 5 | -0/+5 | |
SEEK_SET is defined by unistd.h. Explicitly include it. | |||||
2008-11-22 | wavpack: use assert_static() | Laszlo Ashin | 1 | -4/+5 | |
2008-11-21 | decoder: check audio_format_valid() in all decoders | Max Kellermann | 9 | -7/+70 | |
Refuse to play audio formats which are not supported by MPD. | |||||
2008-11-21 | flac, oggflac: use GLib instead of utils.h/log.h | Max Kellermann | 4 | -33/+29 | |
2008-11-21 | ffmpeg: use GLib instead of log.h | Max Kellermann | 1 | -8/+11 | |
2008-11-21 | audiofile: use GLib instead of log.h | Max Kellermann | 1 | -8/+10 | |
2008-11-21 | aac: use GLib instead of utils.h/log.h | Max Kellermann | 1 | -10/+10 | |
Removed the superfluous my_usleep() call. | |||||
2008-11-20 | ogg: moved the "errorStr" variable into the error handler | Max Kellermann | 1 | -1/+2 | |
2008-11-20 | aac: get rid of gcc warnings | Laszlo Ashin | 1 | -2/+2 | |
2008-11-20 | ogg: check the ov_read() return value before the vorbis_info evaluation | Max Kellermann | 1 | -7/+6 | |
The ov_info() return value may be corrupt when ov_read() did not return a positive value. First check for success, then check ov_info(). | |||||
2008-11-19 | wavpack: redo using audio_format_frame_size() | Laszlo Ashin | 1 | -6/+1 | |
Somehow we lost 600e1322 after renaming some variables in ed6f6046. | |||||
2008-11-18 | ffmpeg: read tags from AVFormatContext | Viliam Mateicka | 1 | -5/+16 | |
The ffmpeg library provides some of the song metadata in the AVFormatContext struct. Pass it from there to MPD. | |||||
2008-11-18 | audiofile: fixed misplaced if | Viliam Mateicka | 1 | -2/+1 | |
[mk: by definition, tag_new() cannot fail - removed check] | |||||
2008-11-16 | input_stream: size==-1 means unknown size | Max Kellermann | 4 | -1/+10 | |
Define the special value "-1" as "unknown size". Previously, there was no indicator for streams with unknown size, which might confuse some decoders. | |||||
2008-11-16 | ffmpeg: fixed AVSEEK_SIZE | Max Kellermann | 1 | -3/+9 | |
With whence==AVSEEK_SIZE, the seek function should return the file size, not the current offset. Check the return value of input_stream_seek(). | |||||
2008-11-16 | aac: detect whether to pass "uint32_t*" to NeAACDecInit2() | Max Kellermann | 2 | -7/+31 | |
neaacdec.h declares all arguments as "unsigned long", but internally expects uint32_t pointers. This triggers gcc warnings on 64 bit architectures. To avoid that, make configure.ac detect whether we're using Debian's corrected headers or the original libfaad headers. In any case, pass a pointer to an uint32_t, conditionally casted to "unsigned long*". | |||||
2008-11-15 | aac: fix compiler warnings on amd64 | Laszlo Ashin | 1 | -2/+2 | |
2008-11-15 | aac: don't try to free static buffer | Laszlo Ashin | 1 | -4/+0 | |
In 432da18e a dynamic buffer was replaced by a static one but some frees were accidently left there which caused some segfaults. | |||||
2008-11-14 | wavpack: be more robust if the underlying stream is not seekable | László Áshin | 1 | -1/+5 | |
The wavpack open function gives us an option called OPEN_STREAMING. This provides more robust and error tolerant playback, but it automatically disables seeking. (More exactly the wavpack lib will not return the length information.) So, if the stream is already not seekable we can use this option safely. | |||||
2008-11-14 | wavpack: tolerate less decoded data than requested | László Áshin | 1 | -1/+1 | |
Wavpack plugin doesn't stop decoding if a block couldn't be fully decoded, rather it tries to go on. | |||||
2008-11-14 | wavpack: renamed variables and modified coding style slightly | László Áshin | 1 | -80/+113 | |
2008-11-13 | mp3: fix SEEK command check after mp3_synth_and_send() | Max Kellermann | 1 | -5/+3 | |
mp3 seeking was broken, because the command==SEEK check was never reached. Swap the command check order (==SEEK before !=NONE) to fix that. | |||||
2008-11-12 | wavpack: remove commented debug messages | Max Kellermann | 1 | -6/+1 | |
2008-11-12 | wavpack: calculate outsamplesize with audio_format_frame_size() | Max Kellermann | 1 | -5/+1 | |
2008-11-12 | ogg: revert "use ogg_fopen() instead of ogg_open()" | Max Kellermann | 1 | -6/+9 | |
Unfortunately, ov_fopen() is not supported by libvorbis versions older than 1.2. | |||||
2008-11-12 | aac: shift the input buffer before the full check | Max Kellermann | 1 | -4/+5 | |
When the buffer was full, but everything was already consumed, fillAacBuffer() would not attempt to flush and refill it. | |||||
2008-11-12 | aac: make the input buffer static | Max Kellermann | 1 | -9/+4 | |
Allocate the input buffer within the AacBuffer struct. | |||||
2008-11-12 | aac: reject SEEK commands | Max Kellermann | 1 | -1/+3 | |
The aac plugin does not support seeking. Reject SEEK requests by calling decoder_seek_error(). Quit the plugin's main loop only when STOP is received. | |||||
2008-11-12 | aac: get decoder command from decoder_data() | Max Kellermann | 1 | -4/+5 | |
Removed a superfluous decoder_get_command() call. | |||||
2008-11-12 | aac: convert audio_format to temporary variable | Max Kellermann | 1 | -5/+6 | |
The audio_format variable is only used and initialized for decoder_initialized(). Move it into that block to save some bytes on the stack. | |||||
2008-11-12 | aac: removed method file_decode() | Max Kellermann | 1 | -124/+1 | |
aac_stream_decode() was basically copy+pasted from aac_decode(). Since stream_decode() can also decode files, eliminate aac_decode(). | |||||
2008-11-12 | aac: check the buffer length in the ADIF parser | Max Kellermann | 1 | -0/+6 | |
Check whether enough data has been read yet. | |||||
2008-11-12 | aac: use unsigned integers and size_t where appropriate | Max Kellermann | 1 | -5/+6 | |
2008-11-12 | aac: check if the stream is seekable before length check | Max Kellermann | 1 | -1/+2 | |
If the stream is not seekable, don't try to decode all frames to find out the total song time. | |||||
2008-11-12 | aac: removed attribute "atEof" | Max Kellermann | 1 | -14/+7 | |
Use input_stream_eof() instead. | |||||
2008-11-12 | mpc: assume the result fo of mpc_decoder_decode() is unsigned | Max Kellermann | 1 | -2/+2 | |
According to the documentation, mpc_decoder_decode() returns an mpc_uint32_t. Since the special return value (mpc_uint32_t)-1 translates to a very large long integer, this may cause segmentation faults if not interpreted properly. | |||||
2008-11-12 | mpc: don't assume the stream is stereo | Max Kellermann | 1 | -2/+1 | |
Don't hard-code the factor "2". |