From 76510e6e6f62690ef6fdd6506f4d0ed8f79529b9 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 12 Apr 2011 17:24:13 +0000 Subject: fixed regression git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2156 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Engines/mplayer/mplayerengine.cpp | 3 ++- src/qmmp/qmmpaudioengine.cpp | 5 ++--- src/qmmp/soundcore.cpp | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/plugins/Engines/mplayer/mplayerengine.cpp b/src/plugins/Engines/mplayer/mplayerengine.cpp index 7471cc6cd..e08e9642f 100644 --- a/src/plugins/Engines/mplayer/mplayerengine.cpp +++ b/src/plugins/Engines/mplayer/mplayerengine.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -246,4 +246,5 @@ void MplayerEngine::startMplayerProcess() delete info; m_source->deleteLater(); m_source = 0; + m_currentTime = 0; } diff --git a/src/qmmp/qmmpaudioengine.cpp b/src/qmmp/qmmpaudioengine.cpp index b26971bd3..e80294914 100644 --- a/src/qmmp/qmmpaudioengine.cpp +++ b/src/qmmp/qmmpaudioengine.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2010 by Ilya Kotov * + * Copyright (C) 2009-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -265,11 +265,10 @@ void QmmpAudioEngine::stop() } wait(); - if (m_output) - m_output->wait(); if (m_output) { + m_output->wait(); delete m_output; m_output = 0; } diff --git a/src/qmmp/soundcore.cpp b/src/qmmp/soundcore.cpp index 45d56507b..b58556083 100644 --- a/src/qmmp/soundcore.cpp +++ b/src/qmmp/soundcore.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2010 by Ilya Kotov * + * Copyright (C) 2006-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -107,7 +107,10 @@ void SoundCore::stop() delete m_pendingEngine; m_pendingEngine = 0; if(m_engine) + { m_engine->stop(); + qApp->processEvents(QEventLoop::ExcludeUserInputEvents); + } qDeleteAll(m_pendingSources); m_pendingSources.clear(); updateVolume(); -- cgit v1.2.3-13-gbd6f