summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2011-12-13 23:23:13 +0200
committerLaszlo Papp <ext-laszlo.papp@nokia.com>2011-12-13 23:23:13 +0200
commit3bb575a35f000cc2f25f84cea723ee5456afd5f5 (patch)
treefa11660b198aeb119fe1c3a53104001107588dbf
parent47434073efba4df7b3cadc28d435f537cdd6f3ea (diff)
Return -1 as an error value if there is some issue during the decoding
-rw-r--r--src/decoders/qalflacaudiodecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoders/qalflacaudiodecoder.cpp b/src/decoders/qalflacaudiodecoder.cpp
index 4faea84..c25ad03 100644
--- a/src/decoders/qalflacaudiodecoder.cpp
+++ b/src/decoders/qalflacaudiodecoder.cpp
@@ -266,7 +266,7 @@ QALFlacAudioDecoder::decodeData(char *decodedData, qint64 maxlen)
&& FLAC__stream_decoder_reset(d->flacStreamDecoder) == false)
{
qWarning() << Q_FUNC_INFO << "Failed to allocate memory while resetting before decoding";;
- return false;
+ return -1;
}
}