title: Getting an error on Android 8 on a Samsung device using SCameraCaptureSession
body: <p>I'm trying to capture a video using SCameraCaptureSession class. While using a function of this class - setRepeatingRequest (which described <a href="https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession.html#setRepeatingRequest(android.hardware.camera2.CaptureRequest,%20android.hardware.camera2.CameraCaptureSession.CaptureCallback,%20android.os.Handler)" rel="noreferrer">here</a>), I'm getting the following error:</p>
  
  <p><strong>java.lang.IllegalArgumentException: CaptureRequest contains unconfigured Input/Output Surface!</strong></p>
  
  <p>As I noticed, the problem is occurring because of something in the MediaRecorder's Surface object. However, it is working fine while using Android version older than 8 and the crash happens only on Samsung devices running Android 8.
  No google search revealed anything useful about that crash, so I believe it is quite new... </p>
  
  <p>Does anyone have any piece of information? How can I make that MediaRecorder's surface work fine on a device like I mentioned?</p>
  
  <p><strong>Important note:</strong> Capturing the video works <strong>great</strong> on any Android version before 8!!!</p>