diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-09-27 17:07:35 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-10-01 10:33:28 (GMT) |
commit | bd53ef2094a020789e9543156c524cd90a2d5302 (patch) | |
tree | d495589ed846f1ba7ecce9e653e443c655b8878b /demos | |
parent | 865a9214fbb858cd5089aa3073ad2cff305017ea (diff) | |
download | Qt-bd53ef2094a020789e9543156c524cd90a2d5302.zip Qt-bd53ef2094a020789e9543156c524cd90a2d5302.tar.gz Qt-bd53ef2094a020789e9543156c524cd90a2d5302.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.cpp | 2 |
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); |