kopia lustrzana https://github.com/ryukoposting/Signal-Android
Prevent crash when thumbnail decoder cannot stop, log instead.
rodzic
b7118b6bd8
commit
e97a14f617
|
@ -105,7 +105,11 @@ final class VideoThumbnailsExtractor {
|
|||
outputSurface.release();
|
||||
}
|
||||
if (decoder != null) {
|
||||
decoder.stop();
|
||||
try {
|
||||
decoder.stop();
|
||||
} catch (MediaCodec.CodecException codecException) {
|
||||
Log.w(TAG, "Decoder stop failed: " + codecException.getDiagnosticInfo(), codecException);
|
||||
}
|
||||
decoder.release();
|
||||
}
|
||||
if (extractor != null) {
|
||||
|
|
Ładowanie…
Reference in New Issue