- 18 Nov, 2008 3 commits
-
-
Laszlo Ashin authored
Somehow we lost 600e1322 after renaming some variables in ed6f6046.
-
Viliam Mateicka authored
The ffmpeg library provides some of the song metadata in the AVFormatContext struct. Pass it from there to MPD.
-
Viliam Mateicka authored
[mk: by definition, tag_new() cannot fail - removed check]
-
- 16 Nov, 2008 3 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
With whence==AVSEEK_SIZE, the seek function should return the file size, not the current offset. Check the return value of input_stream_seek().
-
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.
-
- 14 Nov, 2008 3 commits
-
-
László Áshin authored
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.
-
László Áshin authored
Wavpack plugin doesn't stop decoding if a block couldn't be fully decoded, rather it tries to go on.
-
László Áshin authored
-
- 13 Nov, 2008 1 commit
-
-
Max Kellermann authored
mp3 seeking was broken, because the command==SEEK check was never reached. Swap the command check order (==SEEK before !=NONE) to fix that.
-
- 12 Nov, 2008 20 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Unfortunately, ov_fopen() is not supported by libvorbis versions older than 1.2.
-
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.
-
Max Kellermann authored
Use input_stream_eof() instead.
-
Max Kellermann authored
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.
-
Max Kellermann authored
Don't hard-code the factor "2".
-
Max Kellermann authored
Removed 3 superfluous decoder_get_command() invocations.
-
Max Kellermann authored
mpc_to_mpd_buffer() converts a whole chunk at a time. This eliminates 3 local variables in mpc_decode().
-
Max Kellermann authored
Don't split the buffer conversion loop. When libmpcdec returns a chunk, convert and send the whole chunk at a time. This moves several checks out of the loop, and greatly improves performance.
-
Max Kellermann authored
Don't use deprecated MPD libraries.
-
Max Kellermann authored
The buffer is always casted to int32_t* anyway; declare it as int32_t array, and remove the cast.
-
- 11 Nov, 2008 8 commits
-
-
Max Kellermann authored
Since each "eof=true" is followed by "break", the variable is superfluous.
-
Max Kellermann authored
Due to an unnoticed merge error, there was a superfluous "}". Remove it.
-
Max Kellermann authored
Move the reponsibility for freeing the file handle to libvorbis.
-
Max Kellermann authored
-
Max Kellermann authored
Eliminate two decoder_get_command() invocations from the main loop.
-
Max Kellermann authored
Don't let the buffer grow until it is full, flush it whenever there is data available.
-
Max Kellermann authored
Parse ID3 tags, even when they are in the middle of the stream. Very few streams provide embedded ID3 tags. Most of them send only Shoutcast "icy" tags, which limits the practical usefulness of this patch.
-
Max Kellermann authored
When a command is received, decode_next_frame_header() and decodeNextFrame() return DECODE_BREAK. This is already checked by both callers, which means that we can eliminate lots of decoder_get_command() checks.
-