|
@@ -1452,6 +1452,7 @@
|
|
|
CGFloat aspect = isFront ? cameraMgr.frontAspect : cameraMgr.backAspect;
|
|
|
aspect = isLandscape ? 1.0 / aspect : aspect;
|
|
|
[self.videoDataOutput setSampleBufferDelegate:self queue:self.videoDataQueue];
|
|
|
+ [self.captureSession startRunning];
|
|
|
ret = YES;
|
|
|
}
|
|
|
});
|
|
@@ -1472,8 +1473,10 @@
|
|
|
self.motionTimer = nil;
|
|
|
[[NSNotificationCenter defaultCenter] removeObserver:self name:PCS_NotificationNameOrientationDidChange object:nil];
|
|
|
dispatch_async(self.videoDataQueue, ^{
|
|
|
+
|
|
|
[self.videoDataOutput setSampleBufferDelegate:nil queue:nil];
|
|
|
- [Renderer shared].cameraPass.texture = nil;
|
|
|
+ [self.captureSession stopRunning];
|
|
|
+// [Renderer shared].cameraPass.texture = nil;
|
|
|
});
|
|
|
[self stopMotion];
|
|
|
[self.panoramaGuideView showImageWith:nil];
|