diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-21 20:19:58 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-02-21 20:19:58 +0000 |
| commit | 0a5f4888afd478f0bae06c784ae4e900e91b30e0 (patch) | |
| tree | ff630c917525f4a279defc78e5fc21684bbff490 /src/plugins | |
| parent | 388c428d19a5d70f8c99b1b50d6f9f03820d3dba (diff) | |
| download | qmmp-0a5f4888afd478f0bae06c784ae4e900e91b30e0.tar.gz qmmp-0a5f4888afd478f0bae06c784ae4e900e91b30e0.tar.bz2 qmmp-0a5f4888afd478f0bae06c784ae4e900e91b30e0.zip | |
some engine improvements
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1562 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/Engines/mplayer/mplayerengine.cpp | 16 | ||||
| -rw-r--r-- | src/plugins/Engines/mplayer/mplayerengine.h | 2 |
2 files changed, 14 insertions, 4 deletions
diff --git a/src/plugins/Engines/mplayer/mplayerengine.cpp b/src/plugins/Engines/mplayer/mplayerengine.cpp index bf315c2eb..fec80a46e 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-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -120,11 +120,21 @@ bool MplayerEngine::enqueue(InputSource *source) } if(!supports) return FALSE; - source->deleteLater(); + if(m_process->state() == QProcess::NotRunning) m_url = url; else - m_files.enqueue(url); + { + if(source->isQueued()) + m_files.enqueue(url); + else + { + stop(); + m_url = url; + start(); + } + } + source->deleteLater(); return TRUE; } diff --git a/src/plugins/Engines/mplayer/mplayerengine.h b/src/plugins/Engines/mplayer/mplayerengine.h index cc6b12d16..bd34b535c 100644 --- a/src/plugins/Engines/mplayer/mplayerengine.h +++ b/src/plugins/Engines/mplayer/mplayerengine.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * |
