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}
This commit is contained in:
hjon
2016-03-14 13:43:35 -07:00
committed by Commit bot
parent 8bbbf2c3da
commit a9635b83e0

View File

@ -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);
}
}