chore: Remove unused ImageWriter

This commit is contained in:
Marc Rousavy 2023-09-30 13:01:56 +02:00
parent ce07750dea
commit be3d802267
2 changed files with 2 additions and 7 deletions

View File

@ -1,7 +1,6 @@
package com.mrousavy.camera.core package com.mrousavy.camera.core
import android.content.Context import android.content.Context
import android.media.ImageWriter
import android.media.MediaCodec import android.media.MediaCodec
import android.media.MediaRecorder import android.media.MediaRecorder
import android.os.Build import android.os.Build
@ -40,7 +39,6 @@ class RecordingSession(
private val recorder: MediaRecorder private val recorder: MediaRecorder
private val outputFile: File private val outputFile: File
private var startTime: Long? = null private var startTime: Long? = null
private var imageWriter: ImageWriter? = null
val surface: Surface = MediaCodec.createPersistentInputSurface() val surface: Surface = MediaCodec.createPersistentInputSurface()
init { init {
@ -103,9 +101,6 @@ class RecordingSession(
try { try {
recorder.stop() recorder.stop()
recorder.release() recorder.release()
imageWriter?.close()
imageWriter = null
} catch (e: Error) { } catch (e: Error) {
Log.e(TAG, "Failed to stop MediaRecorder!", e) Log.e(TAG, "Failed to stop MediaRecorder!", e)
} }

View File

@ -501,7 +501,7 @@ PODS:
- libwebp (~> 1.0) - libwebp (~> 1.0)
- SDWebImage/Core (~> 5.10) - SDWebImage/Core (~> 5.10)
- SocketRocket (0.6.1) - SocketRocket (0.6.1)
- VisionCamera (3.2.1): - VisionCamera (3.2.2):
- React - React
- React-callinvoker - React-callinvoker
- React-Core - React-Core
@ -733,7 +733,7 @@ SPEC CHECKSUMS:
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
VisionCamera: 30b5fa16add632007d96bd802755ee08a92c5653 VisionCamera: cb27c70cea1439e9a946bf2acdc059f8fb1bc68c
Yoga: 8796b55dba14d7004f980b54bcc9833ee45b28ce Yoga: 8796b55dba14d7004f980b54bcc9833ee45b28ce
PODFILE CHECKSUM: ab9c06b18c63e741c04349c0fd630c6d3145081c PODFILE CHECKSUM: ab9c06b18c63e741c04349c0fd630c6d3145081c