aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/Input/mad/decoder_mad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp
index 766e8a678..572063ba2 100644
--- a/src/plugins/Input/mad/decoder_mad.cpp
+++ b/src/plugins/Input/mad/decoder_mad.cpp
@@ -318,7 +318,7 @@ qint64 DecoderMAD::readAudio(char *data, qint64 size)
{
forever
{
- if((stream.error == MAD_ERROR_BUFLEN) || !stream.buffer)
+ if(((stream.error == MAD_ERROR_BUFLEN) || !stream.buffer) && !m_eof)
{
m_eof = !fillBuffer();
}