Commit 46bf67b7 authored by David Fries's avatar David Fries Committed by The Qt Project
Browse files

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: default avatarMartin Smith <martin.smith@digia.com>
parent 0d9526b5
No related merge requests found
Showing with 2 additions and 0 deletions
...@@ -67,7 +67,9 @@ int main(int argc, char *argv[]) ...@@ -67,7 +67,9 @@ int main(int argc, char *argv[])
QString source1, source2; QString source1, source2;
qreal volume = 0.5; qreal volume = 0.5;
QStringList args = app.arguments(); QStringList args = app.arguments();
#ifdef PERFORMANCEMONITOR_SUPPORT
PerformanceMonitor::State performanceMonitorState; PerformanceMonitor::State performanceMonitorState;
#endif
bool sourceIsUrl = false; bool sourceIsUrl = false;
for (int i = 1; i < args.size(); ++i) { for (int i = 1; i < args.size(); ++i) {
const QByteArray arg = args.at(i).toUtf8(); const QByteArray arg = args.at(i).toUtf8();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment