From: unknown Date: Sat, 22 Jan 2011 14:08:01 +0000 (+0100) Subject: Buffering lasts at least 2 seconds X-Git-Tag: 1.4~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cae7258b711b6f3e974ceb99624675d5bb6326a3;p=minitube Buffering lasts at least 2 seconds --- diff --git a/src/downloaditem.cpp b/src/downloaditem.cpp index dd5b278..c5192e7 100644 --- a/src/downloaditem.cpp +++ b/src/downloaditem.cpp @@ -160,9 +160,11 @@ void DownloadItem::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) { } // qDebug() << bytesReceived << bytesTotal; + if (m_status != Downloading - && bytesReceived > 1024 * 512 - && bytesReceived > bytesTotal * .01) { + && bytesReceived > 1024 * 1024 + && bytesReceived > bytesTotal * .01 + && m_downloadTime.msecsTo(now) > 2000 ) { m_status = Downloading; emit statusChanged(); }