removing a local variablec cpHigh

This commit is contained in:
tibbi 2017-03-21 20:38:49 +01:00
parent 89e41d1fac
commit af58be70dd
1 changed files with 5 additions and 4 deletions

View File

@ -491,10 +491,11 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
}
val resolution = getSelectedResolution()
val cpHigh = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH)
cpHigh.videoFrameWidth = resolution.width
cpHigh.videoFrameHeight = resolution.height
mRecorder!!.setProfile(cpHigh)
CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH).apply {
videoFrameWidth = resolution.width
videoFrameHeight = resolution.height
mRecorder!!.setProfile(this)
}
if (mActivity.needsStupidWritePermissions(mCurrVideoPath)) {
if (config.treeUri.isEmpty()) {