aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/inputPlugins/audiofile_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inputPlugins/audiofile_plugin.c b/src/inputPlugins/audiofile_plugin.c
index 7f748fc1b..d32a99857 100644
--- a/src/inputPlugins/audiofile_plugin.c
+++ b/src/inputPlugins/audiofile_plugin.c
@@ -85,10 +85,10 @@ static int audiofile_decode(char *path)
fs = (int)afGetVirtualFrameSize(af_fp, AF_DEFAULT_TRACK, 1);
{
- int ret, eof = 0, current = 0;
+ int ret, current = 0;
char chunk[CHUNK_SIZE];
- while (!eof) {
+ while (1) {
if (dc_seek()) {
dc_action_begin();
current = dc.seek_where *
@@ -101,7 +101,7 @@ static int audiofile_decode(char *path)
afReadFrames(af_fp, AF_DEFAULT_TRACK, chunk,
CHUNK_SIZE / fs);
if (ret <= 0)
- eof = 1;
+ break;
else {
current += ret;
ob_send(chunk, ret * fs,