removing a local variablec cpHigh

This commit is contained in:
tibbi
2017-03-21 20:38:49 +01:00
parent 89e41d1fac
commit af58be70dd

View File

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