aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decoder/modplug_plugin.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decoder/modplug_plugin.c b/src/decoder/modplug_plugin.c
index f21f4e7a7..9da92226d 100644
--- a/src/decoder/modplug_plugin.c
+++ b/src/decoder/modplug_plugin.c
@@ -48,11 +48,7 @@ static GByteArray *mod_loadfile(struct decoder *decoder, struct input_stream *is
data = g_malloc(MODPLUG_READ_BLOCK);
total_len = 0;
do {
- if (decoder) {
- ret = decoder_read(decoder, is, data, MODPLUG_READ_BLOCK);
- } else {
- ret = input_stream_read(is, data, MODPLUG_READ_BLOCK);
- }
+ ret = decoder_read(decoder, is, data, MODPLUG_READ_BLOCK);
if (ret > 0) {
g_byte_array_append(bdatas, data, ret);
total_len += ret;