aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/modplug_plugin.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-01-24modplug: removed EOF check from the while loopMax Kellermann1-2/+4
EOF is checked by input_stream_read() (decoder_read() here). Don't do it twice. The check was wrong anyway, it was reversed.
2009-01-24modplug: check for input_stream errorsMax Kellermann1-2/+8
When input_stream_read() returns 0, and input_stream_eof() returns false, an I/O error has occured. Skip this song.
2009-01-24modplug: use size_t instead of int for buffer sizesMax Kellermann1-1/+1
2009-01-24modplug: check size limit before appending new bufferMax Kellermann1-4/+4
Don't enlarge the GByteArray when the size limit may overflow in this operation; check the size limit first.
2009-01-24modplug: use GByteArray.len, remove total_lenMax Kellermann1-4/+2
The local variable "total_len" is superfluous because GByteArray always knows its size.
2009-01-24modplug: unknown size is -1; check for empty fileMax Kellermann1-5/+12
The input_stream API sets size to -1 when the size of the resource is not known. The modplug decoder checked for size==0, which would be an empty file.
2009-01-24modplug: header cleanupMax Kellermann1-2/+0
Don't include utils.h and log.h, they are relics from the past.
2009-01-24modplug: define G_LOG_DOMAINMax Kellermann1-0/+3
Make sure that log messages are decorated correctly.
2009-01-24modplug: declare constants as enumMax Kellermann1-4/+6
Don't write CPP if you can write C.
2009-01-24modplug: use only decoder_read(), not input_stream_read()Max Kellermann1-5/+1
You are allowed to call decoder_read() with decoder==NULL. It is a convenience function provided by the decoder API. Don't manually fall back to input_stream_read().
2009-01-24modplug: change settings before loading a fileAndrzej Rybczak1-6/+8
alternative settings must be set before the file is loaded, otherwise they won't be respected.
2008-12-28decoder: new plugin using modplug libraryViliam Mateicka1-0/+200