removing a local variablec cpHigh
This commit is contained in:
parent
89e41d1fac
commit
af58be70dd
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue