diff options
Diffstat (limited to 'src/plugins/General/converter/converter.cpp')
| -rw-r--r-- | src/plugins/General/converter/converter.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp index 063192932..63fe2ffd0 100644 --- a/src/plugins/General/converter/converter.cpp +++ b/src/plugins/General/converter/converter.cpp @@ -110,6 +110,7 @@ bool Converter::prepare(const QString &url, const QVariantMap &preset) m_preset = preset; if(!decoder->totalTime()) source->setOffset(-1); + m_user_stop = false; return true; } @@ -123,7 +124,11 @@ void Converter::stop() void Converter::run() { qDebug("Converter: staring thread"); - m_user_stop = false; + if(m_user_stop) + { + emit finished(this); + return; + } AudioParameters ap = m_decoder->audioParameters(); QString url = m_input->url(); |
