Call handlePipeline() when we acquire resources.
authorMohammed Sameer <msameer@foolab.org>
Sun, 9 Dec 2012 03:10:36 +0000 (05:10 +0200)
committerMohammed Sameer <msameer@foolab.org>
Sun, 9 Dec 2012 03:10:36 +0000 (05:10 +0200)
CameraResources is synchronous.
If we are moving from a page to a page and both have acquired resources then
we will not get any signals from CameraResources

qml/CameraPage.qml

index 0fe5f3d..7ea7569 100644 (file)
@@ -40,6 +40,9 @@ Page {
                 if (!resourcePolicy.acquire(page.policyMode)) {
                         cam.stop(force);
                 }
+                else {
+                        handlePipeline();
+                }
         }
 
         Component.onCompleted: {