qmlvideo example, add missing #ifdef PERFORMANCEMONITOR_SUPPORT
authorDavid Fries <David@Fries.net>
Tue, 2 Apr 2013 04:00:00 +0000 (23:00 -0500)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 8 May 2013 04:58:45 +0000 (06:58 +0200)
This usage of PerformanceMonitor needs to be protected by the same
preprocessor check as the header include that makes it available.

Change-Id: Ie8a1b6e99a61c333ceedcf2e9751235fc2efb415
Reviewed-by: Martin Smith <martin.smith@digia.com>
examples/multimedia/video/qmlvideo/main.cpp

index 1a9c523..e44476a 100644 (file)
@@ -67,7 +67,9 @@ int main(int argc, char *argv[])
     QString source1, source2;
     qreal volume = 0.5;
     QStringList args = app.arguments();
+#ifdef PERFORMANCEMONITOR_SUPPORT
     PerformanceMonitor::State performanceMonitorState;
+#endif
     bool sourceIsUrl = false;
     for (int i = 1; i < args.size(); ++i) {
         const QByteArray arg = args.at(i).toUtf8();