diff options
author | waker <wakeroid@gmail.com> | 2009-09-03 19:27:48 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-09-03 19:27:48 +0200 |
commit | f8adccefd9183f6ae712eace9d3755e422bf1299 (patch) | |
tree | e68d07a21da8ef6fe21921542a731a1a25211ddd /plugins | |
parent | 305f28b85f87160bb8df1763df72c3ff2d66ffea (diff) |
fixed ape song ending
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ape/ape.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ape/ape.c b/plugins/ape/ape.c index 1a24eb08..87045082 100644 --- a/plugins/ape/ape.c +++ b/plugins/ape/ape.c @@ -98,6 +98,9 @@ ape_read (char *buffer, int size) { ape_blocks_left -= nblocks; samplesdecoded += nblocks; plugin.info.readpos = samplesdecoded / (float)plugin.info.samplerate - timestart; + if (plugin.info.readpos >= timeend) { + return 0; + } return nblocks * 2 * plugin.info.channels; } |