diff options
-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 d6873ea..2f282b6 100644 --- a/src/decoders/qalflacaudiodecoder.cpp +++ b/src/decoders/qalflacaudiodecoder.cpp @@ -133,7 +133,7 @@ QALFlacAudioDecoder::open(const QString &fileName) d->file.setFileName(fileName); d->flacStreamDecoder = *FLAC__stream_decoder_new(); - if (d->flacStreamDecoder) { + if (d->flacStreamDecoder == 0) { qWarning() << Q_FUNC_INFO << "Could not allocate enough memory for the flac stream decoder handle"; return false; } |