From a9635b83e0bcfdddcda9235a37c0fe7c6934e363 Mon Sep 17 00:00:00 2001 From: hjon Date: Mon, 14 Mar 2016 13:43:35 -0700 Subject: [PATCH] Use the right mirroring state when switching cameras in AppRTCDemo. BUG= Review URL: https://codereview.webrtc.org/1799103002 Cr-Commit-Position: refs/heads/master@{#11988} --- .../examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m b/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m index 60448b7f78..b878677303 100644 --- a/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m +++ b/webrtc/examples/objc/AppRTCDemo/ios/ARDVideoCallViewController.m @@ -188,8 +188,6 @@ if ([source isKindOfClass:[RTCAVFoundationVideoSource class]]) { RTCAVFoundationVideoSource* avSource = (RTCAVFoundationVideoSource*)source; avSource.useBackCamera = !avSource.useBackCamera; - _videoCallView.localVideoView.transform = avSource.useBackCamera ? - CGAffineTransformIdentity : CGAffineTransformMakeScale(-1, 1); } }