Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimblebee committed Jan 12, 2024
1 parent ae7ca03 commit a64d19e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class LocalSettingsRepository @Inject constructor(
aspectRatio = AspectRatio.fromProto(it.aspectRatioStatus),
previewStabilization = Stabilization.fromProto(it.stabilizePreview),
videoCaptureStabilization = Stabilization.fromProto(it.stabilizeVideo),
isStabilizationSupported = it.stabilizationSupported,
captureMode = when (it.captureModeStatus) {
CaptureModeProto.CAPTURE_MODE_SINGLE_STREAM -> CaptureMode.SINGLE_STREAM
CaptureModeProto.CAPTURE_MODE_MULTI_STREAM -> CaptureMode.MULTI_STREAM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,15 +360,6 @@ constructor(
Recorder.getVideoCapabilities(it).isStabilizationSupported
} ?: false

// if video stabilization is supported, do we still need to check for preview?
/*
val isPreviewStabilizationSupported =
cameraSelector.filter(availableCameraInfo).firstOrNull()?.let {
Preview.getPreviewCapabilities(it).isStabilizationSupported
} ?: false
*/

return isVideoStabilizationSupported
}
private fun createVideoUseCase(): VideoCapture<Recorder> {
Expand Down

0 comments on commit a64d19e

Please sign in to comment.