From 55c166a5356dff281533ca455cfe633f2721bf17 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 26 Sep 2008 19:30:27 +0000 Subject: some api changes; enabled ogg vorbis plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@565 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/mad/decoder_mad.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 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 395506c33..0eeb912cf 100644 --- a/src/plugins/Input/mad/decoder_mad.cpp +++ b/src/plugins/Input/mad/decoder_mad.cpp @@ -102,8 +102,7 @@ bool DecoderMAD::initialize() { if (! input()->open(QIODevice::ReadOnly)) { - /*qWarning("DecoderMAD: Failed to open input. Error " + - QString::number(input()->isOpen()) + ".");*/ + qWarning("DecoderMAD: %s", qPrintable(input()->errorString ())); return FALSE; } } @@ -344,7 +343,7 @@ qint64 DecoderMAD::lengthInSeconds() return totalTime; } -void DecoderMAD::seek(double pos) +void DecoderMAD::seek(qint64 pos) { seekTime = pos; } @@ -403,13 +402,8 @@ void DecoderMAD::run() return; } - - //DecoderState::Type stat = DecoderState::Decoding; - mutex()->unlock(); - //dispatch(stat); - while (! done && ! m_finish && ! derror) { mutex()->lock(); @@ -533,14 +527,9 @@ void DecoderMAD::run() if (m_finish) finish(); -// stat = DecoderState::Finished; - //else if (user_stop) - // stat = DecoderState::Stopped; mutex()->unlock(); - //dispatch(stat); - if (input()) input()->close(); deinit(); -- cgit v1.2.3-13-gbd6f