aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-08-30 16:11:20 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2007-08-30 16:11:20 +0000
commitdf0f8bf172b62e52e0504f9bfb3349d887bc3efe (patch)
tree2ce6aaff79387fdeea07e46c706f072ff3529048 /lib
parent9c36798089753b7f62db03e24d2b6bc2707a1f5c (diff)
downloadqmmp-df0f8bf172b62e52e0504f9bfb3349d887bc3efe.tar.gz
qmmp-df0f8bf172b62e52e0504f9bfb3349d887bc3efe.tar.bz2
qmmp-df0f8bf172b62e52e0504f9bfb3349d887bc3efe.zip
removed content type waiting
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@131 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'lib')
-rw-r--r--lib/streamreader.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/streamreader.cpp b/lib/streamreader.cpp
index 914846335..d43f8c4f8 100644
--- a/lib/streamreader.cpp
+++ b/lib/streamreader.cpp
@@ -136,13 +136,10 @@ void StreamReader::updateTitle()
const QString &StreamReader::contentType()
{
- while (m_contentType.isEmpty() && m_downloader->isRunning())
- {
- m_downloader->mutex()->lock ();
- m_contentType = m_downloader->contentType();
- m_downloader->mutex()->unlock();
- qApp->processEvents();
- }
+ m_downloader->mutex()->lock ();
+ m_contentType = m_downloader->contentType();
+ m_downloader->mutex()->unlock();
+ qApp->processEvents();
qDebug("StreamReader: content type: %s", qPrintable(m_contentType));
return m_contentType;
}