Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Conversation

@SergioEstevao
Copy link
Contributor

The capture cell was sometimes getting the main thread stuck when returning from a capture.

This PR improves the performance of capture by creating the video layer on the background capture session thread.

To test:

  • Start the demo app on a device
  • Tap on the live preview cell
  • Capture an photo
  • Accept
  • Return to the picker and see if nothing get's stuck and the live preview cell resumes normally.

@SergioEstevao SergioEstevao added this to the 0.20 milestone Aug 23, 2017
@SergioEstevao SergioEstevao requested a review from frosty August 23, 2017 11:06
_sessionQueue = dispatch_queue_create("org.wordpress.WPMediaCapturePreviewCollectionView", DISPATCH_QUEUE_SERIAL);
_previewView = [[UIView alloc] initWithFrame:self.bounds];
_previewView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
_previewView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 🚨 🚨 Trailing whitespace 😱 🚨 🚨 🚨

Copy link
Contributor

@frosty frosty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, but otherwise :shipit:

@SergioEstevao SergioEstevao merged commit 522d8fc into develop Aug 23, 2017
@SergioEstevao SergioEstevao deleted the issue/fix_capture_issues branch August 23, 2017 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants