summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-27 18:07:35 +0100
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-08 09:56:01 +0100
commitd1b6c5d5e101c9ffdfdfb7b712ea69025150ab05 (patch)
treee6e55188588b9ce05c8a232c21e2181cad6ceb4c
parentbb994a5e2a260911ed3c5603d3414c63a28faab4 (diff)
downloadqt4-tools-d1b6c5d5e101c9ffdfdfb7b712ea69025150ab05.tar.gz
qmediaplayer: show buffer status of 0%
During progressive download, it is not possible for the Symbian MMF Phonon backend to determine the buffering status, so it returns a value of 0%. This change causes qmediaplayer to display this value in the UI, thereby giving a visible notification of buffering during progressive download. Task-number: QTBUG-10769 Reviewed-by: Derick Hawcroft
-rw-r--r--demos/qmediaplayer/mediaplayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/qmediaplayer/mediaplayer.cpp b/demos/qmediaplayer/mediaplayer.cpp
index 3cb06167ed..97a8e35f03 100644
--- a/demos/qmediaplayer/mediaplayer.cpp
+++ b/demos/qmediaplayer/mediaplayer.cpp
@@ -716,7 +716,7 @@ void MediaPlayer::openFile()
void MediaPlayer::bufferStatus(int percent)
{
- if (percent == 0 || percent == 100)
+ if (percent == 100)
progressLabel->setText(QString());
else {
QString str = QString::fromLatin1("(%1%)").arg(percent);