From df0f8bf172b62e52e0504f9bfb3349d887bc3efe Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 30 Aug 2007 16:11:20 +0000 Subject: removed content type waiting git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@131 90c681e8-e032-0410-971d-27865f9a5e38 --- lib/streamreader.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'lib/streamreader.cpp') 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; } -- cgit v1.2.3-13-gbd6f