summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2011-12-07 19:20:34 +0200
committerLaszlo Papp <ext-laszlo.papp@nokia.com>2011-12-07 19:20:34 +0200
commit44f48b8fcd7c1f234050a4fe8bc599498eab9afe (patch)
tree852a5fe893a884f7379506077bdaac138a55cca4
parent755f3a0f2ba131d5d87d2e44643fe06027a7642c (diff)
Implement the eofCallback of the flac audio decoder backend
-rw-r--r--src/decoders/qalflacaudiodecoder.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decoders/qalflacaudiodecoder.cpp b/src/decoders/qalflacaudiodecoder.cpp
index 3fc6460..a272b0c 100644
--- a/src/decoders/qalflacaudiodecoder.cpp
+++ b/src/decoders/qalflacaudiodecoder.cpp
@@ -109,6 +109,9 @@ QALFlacAudioDecoder::Private::lengthCallback(const FLAC__StreamDecoder *decoder,
FLAC__bool
QALFlacAudioDecoder::Private::eofCallback(const FLAC__StreamDecoder *decoder, void *client_data)
{
+ Q_UNUSED(decoder)
+
+ return reinterpret_cast<QALFlacAudioDecoder::Private*>(client_data)->file.atEnd();
}
FLAC__StreamDecoderWriteStatus