diff options
Diffstat (limited to 'src/plugins/General/rgscan/rgscanner.cpp')
| -rw-r--r-- | src/plugins/General/rgscan/rgscanner.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/General/rgscan/rgscanner.cpp b/src/plugins/General/rgscan/rgscanner.cpp index fcc9158f2..f40eeb599 100644 --- a/src/plugins/General/rgscan/rgscanner.cpp +++ b/src/plugins/General/rgscan/rgscanner.cpp @@ -77,8 +77,8 @@ bool RGScanner::prepare(const QString &url) delete source; return false; } - qDebug("RGScanner: [%s] selected decoder: %s", - qPrintable(factory->properties().shortName), qPrintable(name)); + qDebug("RGScanner: [%s] selected decoder: %s",qPrintable(name), + qPrintable(factory->properties().shortName)); if(factory->properties().noInput && source->ioDevice()) source->ioDevice()->close(); @@ -195,14 +195,15 @@ void RGScanner::run() } else { + qint64 len = m_decoder->read(char_buf, buf_size*ap.sampleSize()); - if(samples < 0) + if(len < 0) { error = true; break; } - else if(samples == 0) + else if(len == 0) break; samples = len / ap.sampleSize(); |
