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/mad/decoder_mad.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/mad/decoder_mad.cpp')
| -rw-r--r-- | src/plugins/Input/mad/decoder_mad.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/Input/mad/decoder_mad.cpp b/src/plugins/Input/mad/decoder_mad.cpp index d36239911..42f7873ae 100644 --- a/src/plugins/Input/mad/decoder_mad.cpp +++ b/src/plugins/Input/mad/decoder_mad.cpp @@ -60,7 +60,7 @@ bool DecoderMAD::initialize() if (!input()) { qWarning("DecoderMAD: cannot initialize. No input."); - return FALSE; + return false; } if (!m_input_buf) @@ -71,7 +71,7 @@ bool DecoderMAD::initialize() if (!input()->open(QIODevice::ReadOnly)) { qWarning("DecoderMAD: %s", qPrintable(input()->errorString ())); - return FALSE; + return false; } } @@ -89,7 +89,7 @@ bool DecoderMAD::initialize() if (!findHeader()) { qDebug("DecoderMAD: Can't find a valid MPEG header."); - return FALSE; + return false; } mad_stream_buffer(&stream, (unsigned char *) m_input_buf, m_input_bytes); stream.error = MAD_ERROR_BUFLEN; @@ -111,7 +111,7 @@ void DecoderMAD::deinit() mad_frame_finish(&frame); mad_stream_finish(&stream); - m_inited = FALSE; + m_inited = false; m_totalTime = 0; m_channels = 0; m_bitrate = 0; @@ -184,10 +184,10 @@ fail: bool DecoderMAD::findHeader() { - bool result = FALSE; + bool result = false; int count = 0; - bool has_xing = FALSE; - bool is_vbr = FALSE; + bool has_xing = false; + bool is_vbr = false; mad_timer_t duration = mad_timer_zero; struct mad_header header; mad_header_init (&header); @@ -277,7 +277,7 @@ bool DecoderMAD::findHeader() } if (!result) - return FALSE; + return false; if (!is_vbr && !input()->isSequential()) { @@ -385,12 +385,12 @@ bool DecoderMAD::fillBuffer() if (!len) { qDebug("DecoderMAD: end of file"); - return FALSE; + return false; } else if(len < 0) { qWarning("DecoderMAD: error"); - return FALSE; + return false; } m_input_bytes += len; mad_stream_buffer(&stream, (unsigned char *) m_input_buf, m_input_bytes); |
