aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/modplug_plugin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/modplug_plugin.c b/src/decoder/modplug_plugin.c
index 1d373a466..4c3302383 100644
--- a/src/decoder/modplug_plugin.c
+++ b/src/decoder/modplug_plugin.c
@@ -139,10 +139,8 @@ mod_decode(struct decoder *decoder, struct input_stream *is)
do {
ret = ModPlug_Read(f, audio_buffer, MODPLUG_FRAME_SIZE);
-
- if (ret == 0) {
+ if (ret <= 0)
break;
- }
total_time += ret * sec_perbyte;
cmd = decoder_data(decoder, NULL,