From b100262c6a918097d3ab1c2f3496c030b45ee595 Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 20 Jul 2021 13:12:15 -0300 Subject: [PATCH] Fix crash when sending video (due to IllegalStateException). --- .../video/videoconverter/VideoThumbnailsExtractor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/video/videoconverter/VideoThumbnailsExtractor.java b/app/src/main/java/org/thoughtcrime/securesms/video/videoconverter/VideoThumbnailsExtractor.java index 5704ecc90..370d295b3 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/video/videoconverter/VideoThumbnailsExtractor.java +++ b/app/src/main/java/org/thoughtcrime/securesms/video/videoconverter/VideoThumbnailsExtractor.java @@ -109,6 +109,8 @@ final class VideoThumbnailsExtractor { decoder.stop(); } catch (MediaCodec.CodecException codecException) { Log.w(TAG, "Decoder stop failed: " + codecException.getDiagnosticInfo(), codecException); + } catch (IllegalStateException ise) { + Log.w(TAG, "Decoder stop failed", ise); } decoder.release(); }