aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-30 15:34:58 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-09-30 15:34:58 +0000
commitf713b9f121f95756127c18c134c4cea7f2effb76 (patch)
treed205a3d73e0d563f606e77838600d45897ba3258 /src
parent1f12d8758248e339dfcaf90d72ee02f1bd58075c (diff)
downloadqmmp-f713b9f121f95756127c18c134c4cea7f2effb76.tar.gz
qmmp-f713b9f121f95756127c18c134c4cea7f2effb76.tar.bz2
qmmp-f713b9f121f95756127c18c134c4cea7f2effb76.zip
fixed error handling, fixed http plugin freezes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2359 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Input/mpc/decoder_mpc.cpp1
-rw-r--r--src/plugins/Transports/http/httpstreamreader.cpp2
-rw-r--r--src/qmmp/decoderfactory.h2
-rw-r--r--src/qmmp/soundcore.cpp2
4 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/Input/mpc/decoder_mpc.cpp b/src/plugins/Input/mpc/decoder_mpc.cpp
index 93751a51f..1e90bc670 100644
--- a/src/plugins/Input/mpc/decoder_mpc.cpp
+++ b/src/plugins/Input/mpc/decoder_mpc.cpp
@@ -129,7 +129,6 @@ DecoderMPC::DecoderMPC(QIODevice *i)
m_data = 0;
}
-
DecoderMPC::~DecoderMPC()
{
m_len = 0;
diff --git a/src/plugins/Transports/http/httpstreamreader.cpp b/src/plugins/Transports/http/httpstreamreader.cpp
index b40f5b09f..a8d18816d 100644
--- a/src/plugins/Transports/http/httpstreamreader.cpp
+++ b/src/plugins/Transports/http/httpstreamreader.cpp
@@ -248,7 +248,7 @@ QString HttpStreamReader::contentType()
void HttpStreamReader::abort()
{
m_mutex.lock();
-
+ m_ready = false;
if (m_stream.aborted)
{
m_mutex.unlock();
diff --git a/src/qmmp/decoderfactory.h b/src/qmmp/decoderfactory.h
index adeb0da4c..3d2901d7e 100644
--- a/src/qmmp/decoderfactory.h
+++ b/src/qmmp/decoderfactory.h
@@ -120,6 +120,6 @@ public:
virtual QTranslator *createTranslator(QObject *parent) = 0;
};
-Q_DECLARE_INTERFACE(DecoderFactory, "DecoderFactory/1.0");
+Q_DECLARE_INTERFACE(DecoderFactory, "DecoderFactory/1.0")
#endif
diff --git a/src/qmmp/soundcore.cpp b/src/qmmp/soundcore.cpp
index d099a3dff..4b04b55b4 100644
--- a/src/qmmp/soundcore.cpp
+++ b/src/qmmp/soundcore.cpp
@@ -233,6 +233,8 @@ void SoundCore::startNextSource()
m_url.clear();
s->deleteLater();
m_nextState = INVALID_SOURCE;
+ if(m_handler->state() == Qmmp::Stopped || m_handler->state() == Qmmp::Buffering)
+ m_handler->dispatch(Qmmp::NormalError);
return;
}