summaryrefslogtreecommitdiff
path: root/demo/player
diff options
context:
space:
mode:
authorVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-07-07 12:01:33 +0300
committerVsevolod Buzinov <ext-vsevolod.buzinov@nokia.com>2010-07-07 12:01:33 +0300
commit7c05c5cf2611a5645e5d4db058b876e73515cb8f (patch)
treee5d62e822149e2b875b4a5e259facc7012219dbb /demo/player
parent1768f989a338e1e350991d41cc236a500ae2cdec (diff)
downloadlibresourceqt-7c05c5cf2611a5645e5d4db058b876e73515cb8f.tar.gz
Fixed a thinko in demo player that broke the video playback
Diffstat (limited to 'demo/player')
-rw-r--r--demo/player/playerwidget.cpp4
-rw-r--r--demo/player/playerwidget.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/demo/player/playerwidget.cpp b/demo/player/playerwidget.cpp
index 8d65b3b..6cb87c3 100644
--- a/demo/player/playerwidget.cpp
+++ b/demo/player/playerwidget.cpp
@@ -128,7 +128,7 @@ void PlayerWidget::pause(bool releaseResources) {
*
* \see signal ResourcePolicy::ResourceSet::resourcesGranted().
*/
-void PlayerWidget::resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& grantedResList) {
+void PlayerWidget::resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedOptionalResList*/) {
qDebug("PlayerWidget::resourceAcquiredHandler()");
QList<Resource*> list = resourceSet->resources();
@@ -139,7 +139,7 @@ void PlayerWidget::resourceAcquiredHandler(const QList<ResourcePolicy::ResourceT
for (int i = 0; i < list.count(); i++) {
qDebug("Granted resource %d", (int)list[i]);
}
- if (filetype == AUDIO || (filetype == VIDEO && grantedResList.size() > 1))
+ if (filetype == AUDIO || (filetype == VIDEO && list.count() > 1))
beginPlayback();
}
}
diff --git a/demo/player/playerwidget.h b/demo/player/playerwidget.h
index 424df01..e01da71 100644
--- a/demo/player/playerwidget.h
+++ b/demo/player/playerwidget.h
@@ -51,7 +51,7 @@ private:
void timerEvent(QTimerEvent *event);
private slots:
- void resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedResList*/);
+ void resourceAcquiredHandler(const QList<ResourcePolicy::ResourceType>& /*grantedOptionalResList*/);
void resourceReleasedHandler();
void resourceLostHandler();