mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Prevent crash when thumbnail decoder cannot stop, log instead.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user