Update SrsEncoder.java

camera2
thegobot 6 years ago committed by GitHub
parent 3ce4b85f2a
commit 826a8226e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -187,14 +187,22 @@ public class SrsEncoder {
if (aencoder != null) {
Log.i(TAG, "stop aencoder");
aencoder.stop();
try {
aencoder.stop();
}catch (IllegalStateException e){
e.printStackTrace();
}
aencoder.release();
aencoder = null;
}
if (vencoder != null) {
Log.i(TAG, "stop vencoder");
vencoder.stop();
try {
vencoder.stop();
}catch (IllegalStateException e){
e.printStackTrace();
}
vencoder.release();
vencoder = null;
}

Loading…
Cancel
Save