diff options
author | Laszlo Papp <lpapp@kde.org> | 2011-12-13 23:23:13 +0200 |
---|---|---|
committer | Laszlo Papp <ext-laszlo.papp@nokia.com> | 2011-12-13 23:23:13 +0200 |
commit | 3bb575a35f000cc2f25f84cea723ee5456afd5f5 (patch) | |
tree | fa11660b198aeb119fe1c3a53104001107588dbf | |
parent | 47434073efba4df7b3cadc28d435f537cdd6f3ea (diff) |
Return -1 as an error value if there is some issue during the decoding
-rw-r--r-- | src/decoders/qalflacaudiodecoder.cpp | 2 |
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; } } |