projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8137c8
)
release resources only if we manage to stop camera.
author
Mohammed Sameer
<msameer@foolab.org>
Thu, 20 Dec 2012 18:30:47 +0000
(20:30 +0200)
committer
Mohammed Sameer
<msameer@foolab.org>
Thu, 20 Dec 2012 18:30:47 +0000
(20:30 +0200)
In theory, we shouldn't need that as camera will stop when we reach that state but just in case
qml/PipelineManager.qml
patch
|
blob
|
history
diff --git
a/qml/PipelineManager.qml
b/qml/PipelineManager.qml
index
ddef41c
..
2b1d075
100644
(file)
--- a/
qml/PipelineManager.qml
+++ b/
qml/PipelineManager.qml
@@
-57,8
+57,9
@@
Item {
}
function stopCamera() {
- camera.stop(false);
- policy.acquire(CameraResources.None);
+ if (camera.stop(false)) {
+ policy.acquire(CameraResources.None);
+ }
}
function forceStopCamera() {