Skip to content

Commit

Permalink
Merge pull request #27 from enebin/release/0.4.2
Browse files Browse the repository at this point in the history
release/0.4.2
  • Loading branch information
enebin authored Nov 28, 2023
2 parents a48ff8c + f66a186 commit 420346a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/Aespa/Aespa.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ open class Aespa {
return
}

core.terminateSession(onComplete)
core.terminateSession { result in
self.core = nil
onComplete(result)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ protocol AespaCaptureConnectionRepresentable {

extension AVCaptureConnection: AespaCaptureConnectionRepresentable {
func orientation(to orientation: AVCaptureVideoOrientation) {
guard self.isVideoOrientationSupported else {
return
}

self.videoOrientation = orientation
}

Expand Down

0 comments on commit 420346a

Please sign in to comment.