aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-26 10:30:22 +0200
committerMax Kellermann <max@duempel.org>2014-08-26 10:30:22 +0200
commit4a503ba1ad9afcc8a29bb98c186c26927240caa6 (patch)
treec1371128821a428d2a3b79400d9fd62a42007739 /src/decoder
parent2d096a569a961f0bc2c7a28bfc4812bb30a6dcfa (diff)
downloadmpd-4a503ba1ad9afcc8a29bb98c186c26927240caa6.tar.gz
mpd-4a503ba1ad9afcc8a29bb98c186c26927240caa6.tar.xz
mpd-4a503ba1ad9afcc8a29bb98c186c26927240caa6.zip
decoder/mad: simplify "return", eliminate check
This check was redundant, because we could only exit the loop when ret==DECODE_OK.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/MadDecoderPlugin.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx
index 1ad0076ee..d522ab2cf 100644
--- a/src/decoder/plugins/MadDecoderPlugin.cxx
+++ b/src/decoder/plugins/MadDecoderPlugin.cxx
@@ -1043,10 +1043,8 @@ MadDecoder::Read()
}
if (!skip && ret == DECODE_OK)
- break;
+ return true;
}
-
- return ret != DECODE_BREAK;
}
static void