diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-16 08:06:09 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-16 08:06:09 +0000 |
| commit | 0b4c28342e621ab7c45b1a21ebe8d958a76dc634 (patch) | |
| tree | 09257c1905a18eb77d3f2e8fc6c300624f078b6a /src/plugins/General/rgscan/rgscanner.h | |
| parent | eb74cc322125087c3cee58282be0ac38dd7ec052 (diff) | |
| download | qmmp-0b4c28342e621ab7c45b1a21ebe8d958a76dc634.tar.gz qmmp-0b4c28342e621ab7c45b1a21ebe8d958a76dc634.tar.bz2 qmmp-0b4c28342e621ab7c45b1a21ebe8d958a76dc634.zip | |
rgscan: fixed race condition
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3795 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/rgscan/rgscanner.h')
| -rw-r--r-- | src/plugins/General/rgscan/rgscanner.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/General/rgscan/rgscanner.h b/src/plugins/General/rgscan/rgscanner.h index f302ca08b..dad5b08a7 100644 --- a/src/plugins/General/rgscan/rgscanner.h +++ b/src/plugins/General/rgscan/rgscanner.h @@ -43,7 +43,8 @@ public: bool prepare(const QString &url); void stop(); - bool isRunning(); + bool isRunning() const; + bool isPending() const; bool hasValues() const; double gain() const; double peak() const; @@ -60,7 +61,7 @@ private: InputSource *m_source; Decoder *m_decoder; QMutex m_mutex; - bool m_user_stop, m_is_running, m_has_values; + bool m_user_stop, m_is_running, m_is_pending, m_has_values; QString m_url; double m_gain; double m_peak; |
