- 14 Mar, 2009 1 commit
-
-
Max Kellermann authored
On failure, the function should return NULL, not a boolean.
-
- 13 Mar, 2009 1 commit
-
-
Avuton Olrich authored
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
-
- 19 Feb, 2009 1 commit
-
-
Max Kellermann authored
Don't use libfaad's internal type names.
-
- 17 Feb, 2009 15 commits
-
-
Max Kellermann authored
Make some variables more local, and eliminate superfluous ones.
-
Max Kellermann authored
-
Max Kellermann authored
Instead of returning the sample rate and channel count as separate values, fill an audio_format struct.
-
Max Kellermann authored
Don't wait for the first frame to be decoded. We already have the sample rate and the channel count from faacDecInit().
-
Max Kellermann authored
The MPD core will never send a SEEK command to a decoder which has declared to be not seekable.
-
Max Kellermann authored
Replace this plugin's own buffer library with the new decoder_buffer library.
-
Max Kellermann authored
Instead of checking if the buffer is empty after adts_find_frame(), check adts_find_frame()'s return value. This is more robust.
-
Max Kellermann authored
Moved libfaad API quirks to the wrapper functions faad_decoder_init() and faad_decoder_decode().
-
Max Kellermann authored
Instead of writing the song duration into a float pointer, return it from the function.
-
Max Kellermann authored
There are no callers which pass NULL here.
-
Max Kellermann authored
All callers of adts_find_frame() use faad_buffer_fill() before that. Move that faad_buffer_fill() call into adts_find_frame() instead. adts_find_frame() will get its own logic for on-demand filling.
-
Max Kellermann authored
adts_check_frame() must not be called with a buffer length smaller than 8. We can eliminate that duplicate check, and convert it into an assertion.
-
Max Kellermann authored
It's not valid to use the buffer's data without ensuring that the buffer contains enough data.
-
Max Kellermann authored
"aac" -> "faad"
-
Max Kellermann authored
Fixed the log domains of the renamed decoders. Added G_LOG_DOMAIN macros in decoders which don't have one already.
-
- 16 Feb, 2009 3 commits
-
-
Max Kellermann authored
Renamed functions and variables.
-
Max Kellermann authored
The element fileOffset is only written, but never read. It can be removed safely.
-
Max Kellermann authored
A decoder plugin should be named after the library which is used.
-
- 12 Feb, 2009 1 commit
-
-
Max Kellermann authored
Pass the input_stream object to decoder_data(). Without it, the MPD core does not see stream tags.
-
- 17 Jan, 2009 1 commit
-
-
Max Kellermann authored
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().
-
- 08 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 21 Nov, 2008 2 commits
-
-
Max Kellermann authored
Refuse to play audio formats which are not supported by MPD.
-
Max Kellermann authored
Removed the superfluous my_usleep() call.
-
- 20 Nov, 2008 1 commit
-
-
Laszlo Ashin authored
-
- 16 Nov, 2008 2 commits
-
-
Max Kellermann authored
Define the special value "-1" as "unknown size". Previously, there was no indicator for streams with unknown size, which might confuse some decoders.
-
Max Kellermann authored
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*".
-
- 15 Nov, 2008 2 commits
-
-
Laszlo Ashin authored
-
Laszlo Ashin authored
In 432da18e a dynamic buffer was replaced by a static one but some frees were accidently left there which caused some segfaults.
-
- 12 Nov, 2008 9 commits
-
-
Max Kellermann authored
When the buffer was full, but everything was already consumed, fillAacBuffer() would not attempt to flush and refill it.
-
Max Kellermann authored
Allocate the input buffer within the AacBuffer struct.
-
Max Kellermann authored
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.
-
Max Kellermann authored
Removed a superfluous decoder_get_command() call.
-
Max Kellermann authored
The audio_format variable is only used and initialized for decoder_initialized(). Move it into that block to save some bytes on the stack.
-
Max Kellermann authored
aac_stream_decode() was basically copy+pasted from aac_decode(). Since stream_decode() can also decode files, eliminate aac_decode().
-
Max Kellermann authored
Check whether enough data has been read yet.
-
Max Kellermann authored
-
Max Kellermann authored
If the stream is not seekable, don't try to decode all frames to find out the total song time.
-