From 11b7655bb103974d3a855d64dc0b6ec1b0df4ba1 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 11 Mar 2010 19:32:01 +0000 Subject: reapplied previous patch git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1620 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decoder_mad.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/plugins/Input/mad/decoder_mad.cpp') 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); -- cgit v1.2.3-13-gbd6f