diff options
author | David Fries <David@Fries.net> | 2013-04-01 23:00:00 -0500 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-08 06:58:45 +0200 |
commit | 46bf67b7dc4bf105616b240ba3250eed1c391242 (patch) | |
tree | 412d26886026180bf713800452cc77be0249aaad /examples | |
parent | 0d9526b5c9740d3d77d9c4d8403a6f9e7370643f (diff) | |
download | qtmultimedia-46bf67b7dc4bf105616b240ba3250eed1c391242.tar.gz |
qmlvideo example, add missing #ifdef PERFORMANCEMONITOR_SUPPORTv5.1.0-beta1
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>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/multimedia/video/qmlvideo/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |