summaryrefslogtreecommitdiffstats
path: root/src/multimedia
diff options
context:
space:
mode:
authorDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-04-19 05:28:25 (GMT)
committerDmytro Poplavskiy <dmytro.poplavskiy@nokia.com>2010-04-19 05:28:25 (GMT)
commit2b37eeac9bc9afa30d4f6e772f29ee9e963effd5 (patch)
tree4040fad65ad4b1cc588b92a8af9527d9584058d9 /src/multimedia
parent42b71bbe23eaed2a097c25f325713c453ae45c48 (diff)
downloadQt-2b37eeac9bc9afa30d4f6e772f29ee9e963effd5.zip
Qt-2b37eeac9bc9afa30d4f6e772f29ee9e963effd5.tar.gz
Qt-2b37eeac9bc9afa30d4f6e772f29ee9e963effd5.tar.bz2
Fixed typo in QMediaPlayer::play() error reporting
Parameters to invokeMethod were omitted, so error was not reported. Reviewed-by: Justin McPherson
Diffstat (limited to 'src/multimedia')
-rw-r--r--src/multimedia/mediaservices/playback/qmediaplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multimedia/mediaservices/playback/qmediaplayer.cpp b/src/multimedia/mediaservices/playback/qmediaplayer.cpp
index e91a64c..90e64c1 100644
--- a/src/multimedia/mediaservices/playback/qmediaplayer.cpp
+++ b/src/multimedia/mediaservices/playback/qmediaplayer.cpp
@@ -56,7 +56,7 @@
#include <QtMediaServices/qvideowidget.h>
#include <QtMediaServices/qgraphicsvideoitem.h>
-//#define DEBUG_PLAYER_STATE
+#define DEBUG_PLAYER_STATE
QT_BEGIN_HEADER
@@ -491,9 +491,9 @@ void QMediaPlayer::play()
Q_D(QMediaPlayer);
if (d->control == 0) {
- QMetaObject::invokeMethod(this, "_q_error", Qt::QueuedConnection);
+ QMetaObject::invokeMethod(this, "_q_error", Qt::QueuedConnection,
Q_ARG(int, QMediaPlayer::ServiceMissingError),
- Q_ARG(QString, tr("The QMediaPlayer object does not have a valid service"));
+ Q_ARG(QString, tr("The QMediaPlayer object does not have a valid service")));
return;
}