Skip to content

Commit

Permalink
UWP: Remove external camera check on rotate
Browse files Browse the repository at this point in the history
This as noted by other issues prevents the videoFrame from being set if there's an external camera, causing exceptions.

This closes #396 and part of #389
  • Loading branch information
Redth committed Aug 29, 2016
1 parent 07f8e79 commit cb708ad
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -560,7 +560,7 @@ private void buttonToggleFlash_Click(object sender, RoutedEventArgs e)
private async Task SetPreviewRotationAsync(IMediaEncodingProperties props)
{
// Only need to update the orientation if the camera is mounted on the device.
if (mediaCapture == null || externalCamera)
if (mediaCapture == null)
return;

// Calculate which way and how far to rotate the preview.
Expand Down

0 comments on commit cb708ad

Please sign in to comment.