Skip to content

Commit

Permalink
Merge pull request BradLarson#25 from zubco/master
Browse files Browse the repository at this point in the history
Update Camera deinit {}
  • Loading branch information
BradLarson committed Jun 8, 2016
2 parents 35f5799 + 57f9a39 commit c8a5c5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Source/iOS/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public class Camera: NSObject, ImageSource, AVCaptureVideoDataOutputSampleBuffer
deinit {
sharedImageProcessingContext.runOperationSynchronously{
self.stopCapture()
self.videoOutput.setSampleBufferDelegate(self, queue:dispatch_get_main_queue())
self.audioOutput?.setSampleBufferDelegate(self, queue:dispatch_get_main_queue())
self.videoOutput.setSampleBufferDelegate(nil, queue: nil)
self.audioOutput?.setSampleBufferDelegate(nil, queue: nil)
}
}

Expand Down

0 comments on commit c8a5c5a

Please sign in to comment.