summaryrefslogtreecommitdiffstats
path: root/src/plugins/winrt/qwinrtcameracontrol.h
diff options
context:
space:
mode:
authorSamuel Nevala <samuel.nevala@intopalo.com>2015-10-14 10:48:00 +0300
committerSamuel Nevala <samuel.nevala@intopalo.com>2015-10-15 06:19:14 +0000
commit787dcd9e4d40d9d59b90544e4c4bdea13ef532b8 (patch)
tree0650f73eaa9794265c43e69c38ce899e91b8cfcc /src/plugins/winrt/qwinrtcameracontrol.h
parentd50a09965ae53e02caabdbcf4994ed9bc0ea3293 (diff)
winrt: Prevent camera device from being suspended.
On certain Lumia devices video buffer gets page locked when camera is stopped. Subsequent call to video frame map/unmap leads to camera device suspension. As a fix delay camera unload until all mapped video frames are unmapped and return early from video frame map when camera is not active. Task-Id: QTBUG-48672 Change-Id: If547b9d430727bbe0e12cd8c07a30aeff81d13e3 Reviewed-by: Andrew Knight <andrew.knight@intopalo.com>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameracontrol.h')
-rw-r--r--src/plugins/winrt/qwinrtcameracontrol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/winrt/qwinrtcameracontrol.h b/src/plugins/winrt/qwinrtcameracontrol.h
index ac1c922a4..758ecb556 100644
--- a/src/plugins/winrt/qwinrtcameracontrol.h
+++ b/src/plugins/winrt/qwinrtcameracontrol.h
@@ -99,6 +99,8 @@ public:
void emitError(int errorCode, const QString &errorString);
bool lockFocus();
bool unlockFocus();
+ void frameMapped();
+ void frameUnmapped();
private slots:
void onBufferRequested();