diff --git a/server/src/main/java/com/genymobile/scrcpy/CameraEncoder.java b/server/src/main/java/com/genymobile/scrcpy/CameraEncoder.java index ab0fd6c78b..fa618e6167 100644 --- a/server/src/main/java/com/genymobile/scrcpy/CameraEncoder.java +++ b/server/src/main/java/com/genymobile/scrcpy/CameraEncoder.java @@ -92,6 +92,7 @@ public void onError(CameraDevice camera, int error) { return result[0]; } + @SuppressWarnings("deprecation") private CameraCaptureSession createCaptureSession(CameraDevice camera, Surface surface) throws CameraAccessException, InterruptedException { Semaphore semaphore = new Semaphore(0); final CameraCaptureSession[] result = new CameraCaptureSession[1];