From 46bf67b7dc4bf105616b240ba3250eed1c391242 Mon Sep 17 00:00:00 2001 From: David Fries Date: Mon, 1 Apr 2013 23:00:00 -0500 Subject: qmlvideo example, add missing #ifdef PERFORMANCEMONITOR_SUPPORT 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 --- examples/multimedia/video/qmlvideo/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/multimedia/video/qmlvideo/main.cpp b/examples/multimedia/video/qmlvideo/main.cpp index 1a9c52391..e44476a15 100644 --- a/examples/multimedia/video/qmlvideo/main.cpp +++ b/examples/multimedia/video/qmlvideo/main.cpp @@ -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(); -- cgit v1.2.3