diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 19:32:01 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-11 19:32:01 +0000 |
| commit | 11b7655bb103974d3a855d64dc0b6ec1b0df4ba1 (patch) | |
| tree | 09084901838b8d57f345a5379cf5915cde4a9921 /src/plugins/Input/flac/decoder_flac.cpp | |
| parent | 013ee07b55a3738b28b5d46324392d8498b50f2b (diff) | |
| download | qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.gz qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.tar.bz2 qmmp-11b7655bb103974d3a855d64dc0b6ec1b0df4ba1.zip | |
reapplied previous patch
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1620 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/flac/decoder_flac.cpp')
| -rw-r--r-- | src/plugins/Input/flac/decoder_flac.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/Input/flac/decoder_flac.cpp b/src/plugins/Input/flac/decoder_flac.cpp index b4212b19c..a7335b782 100644 --- a/src/plugins/Input/flac/decoder_flac.cpp +++ b/src/plugins/Input/flac/decoder_flac.cpp @@ -222,7 +222,7 @@ static void flac_callback_metadata (const FLAC__StreamDecoder *, static FLAC__bool flac_callback_eof (const FLAC__StreamDecoder *, void *) { - return FALSE; + return false; } static void flac_callback_error (const FLAC__StreamDecoder *, @@ -277,7 +277,7 @@ bool DecoderFLAC::initialize() if (!p.endsWith(".flac")) { qWarning("DecoderFLAC: invalid url."); - return FALSE; + return false; } p.replace(QString(QUrl::toPercentEncoding("#")), "#"); p.replace(QString(QUrl::toPercentEncoding("?")), "?"); @@ -295,7 +295,7 @@ bool DecoderFLAC::initialize() if(m_track > m_parser->count()) { qWarning("DecoderFLAC: invalid cuesheet xiph comment"); - return FALSE; + return false; } data()->input = new QFile(p); data()->input->open(QIODevice::ReadOnly); @@ -307,20 +307,20 @@ bool DecoderFLAC::initialize() else { qWarning("DecoderFLAC: unable to find cuesheet comment."); - return FALSE; + return false; } } else { qWarning("DecoderFLAC: cannot initialize. No input."); - return FALSE; + return false; } } if (!data()->input->isOpen()) { qWarning("DecoderFLAC: unable to open input file"); - return FALSE; + return false; } m_data->bitrate = -1; @@ -349,7 +349,7 @@ bool DecoderFLAC::initialize() if(!FLAC_API_SUPPORTS_OGG_FLAC) { qWarning("DecoderFLAC: unsupported format"); - return FALSE; + return false; } if (FLAC__stream_decoder_init_ogg_stream( m_data->decoder, @@ -364,7 +364,7 @@ bool DecoderFLAC::initialize() this) != FLAC__STREAM_DECODER_INIT_STATUS_OK) { data()->ok = 0; - return FALSE; + return false; } } else if (!memcmp(buf, "fLaC", 4)) @@ -382,20 +382,20 @@ bool DecoderFLAC::initialize() this) != FLAC__STREAM_DECODER_INIT_STATUS_OK) { data()->ok = 0; - return FALSE; + return false; } } else { qWarning("DecoderFLAC: unsupported format"); - return FALSE; + return false; } if (!FLAC__stream_decoder_process_until_end_of_metadata( data()->decoder)) { data()->ok = 0; - return FALSE; + return false; } switch(data()->bits_per_sample) { @@ -410,7 +410,7 @@ bool DecoderFLAC::initialize() configure(data()->sample_rate, data()->channels, Qmmp::PCM_S32LE); break; default: - return FALSE; + return false; } if(!m_path.contains("://")) { |
