diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-09-30 16:08:19 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-09-30 16:08:19 +0000 |
| commit | e3da4a8739f801d83ee4386a559e9cd010398101 (patch) | |
| tree | b5ac3433ffe2b9d24f7ba39fb4a6ab5ac30586ce | |
| parent | a302f869bb92b90fae927f8f0d58a1b0f2893483 (diff) | |
| download | qmmp-e3da4a8739f801d83ee4386a559e9cd010398101.tar.gz qmmp-e3da4a8739f801d83ee4386a559e9cd010398101.tar.bz2 qmmp-e3da4a8739f801d83ee4386a559e9cd010398101.zip | |
fixed race condition
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5618 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/qmmp/qmmpaudioengine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp index 6e08148a6..4d5ec1dfd 100644 --- a/src/qmmp/qmmpaudioengine.cpp +++ b/src/qmmp/qmmpaudioengine.cpp @@ -355,8 +355,9 @@ void QmmpAudioEngine::run() m_replayGain->setReplayGainInfo(m_decoder->replayGainInfo(), m_decoder->hasHeadroom()); mutex()->unlock(); m_output->start(); - StateHandler::instance()->dispatch(Qmmp::Playing); + StateHandler::instance()->dispatch(Qmmp::Buffering); StateHandler::instance()->dispatch(m_decoder->totalTime()); + StateHandler::instance()->dispatch(Qmmp::Playing); sendMetaData(); while (!m_done && !m_finish) |
