diff options
Diffstat (limited to 'src/plugins/Input/mad/decoder_mad.cpp')
| -rw-r--r-- | src/plugins/Input/mad/decoder_mad.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
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(); |
