summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-27 17:07:35 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-08 08:56:01 (GMT)
commitd1b6c5d5e101c9ffdfdfb7b712ea69025150ab05 (patch)
treee6e55188588b9ce05c8a232c21e2181cad6ceb4c /demos
parentbb994a5e2a260911ed3c5603d3414c63a28faab4 (diff)
downloadQt-d1b6c5d5e101c9ffdfdfb7b712ea69025150ab05.zip
Qt-d1b6c5d5e101c9ffdfdfb7b712ea69025150ab05.tar.gz
Qt-d1b6c5d5e101c9ffdfdfb7b712ea69025150ab05.tar.bz2
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
Diffstat (limited to 'demos')
-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 3cb0616..97a8e35 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);