aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-08-01 08:28:32 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2016-08-01 08:28:32 +0000
commit53f4f2cc56a95bd625811bc7815492095a3892e4 (patch)
treeabbc423915af1f8ade55faf5a7a2a24042258c93 /src
parent9b963dd173779f35317e9476eb341f2c82b5772b (diff)
downloadqmmp-53f4f2cc56a95bd625811bc7815492095a3892e4.tar.gz
qmmp-53f4f2cc56a95bd625811bc7815492095a3892e4.tar.bz2
qmmp-53f4f2cc56a95bd625811bc7815492095a3892e4.zip
fixed random stop bug
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6620 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/qmmp/qmmpaudioengine.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp
index 72491f116..e44a38703 100644
--- a/src/qmmp/qmmpaudioengine.cpp
+++ b/src/qmmp/qmmpaudioengine.cpp
@@ -517,8 +517,13 @@ void QmmpAudioEngine::run()
}
m_output->recycler()->mutex()->unlock();
}
- m_done = true;
- m_finish = !m_user_stop;
+
+ //continue if new input was queued
+ if(m_decoders.isEmpty() || m_user_stop)
+ {
+ m_done = true;
+ m_finish = !m_user_stop;
+ }
}
else
m_finish = true;