summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-07-08 12:42:42 +0300
committerVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-07-08 12:42:42 +0300
commit612c109e25608a6cefb1debbb5c08f8ea540b215 (patch)
tree68619636cf4d2d8e4fc7ffcf4cc59e16e46968fd
parentc0968347cb6aad65e9def5917f24b556efbef392 (diff)
downloadlibresourceqt-612c109e25608a6cefb1debbb5c08f8ea540b215.tar.gz
Removed the unnecessary checks in resourcesAcquiredHandler in demo player
-rw-r--r--demo/player/playerwidget.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/demo/player/playerwidget.cpp b/demo/player/playerwidget.cpp
index 7ed7943..63d43bc 100644
--- a/demo/player/playerwidget.cpp
+++ b/demo/player/playerwidget.cpp
@@ -131,17 +131,7 @@ void PlayerWidget::pause(bool releaseResources) {
void PlayerWidget::resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedOptionalResList*/) {
qDebug("PlayerWidget::resourceAcquiredHandler()");
- QList<Resource*> list = resourceSet->resources();
- if (list.empty()) {
- qDebug("Granted resource set is empty");
- }
- else {
- for (int i = 0; i < list.count(); i++) {
- qDebug("Granted resource %d", (int)list[i]);
- }
- if (filetype == AUDIO || (filetype == VIDEO && list.count() > 1))
- beginPlayback();
- }
+ beginPlayback();
}
/**