Fix crash when sending video (due to IllegalStateException).

This commit is contained in:
Alex Hart
2021-07-20 13:12:15 -03:00
committed by Greyson Parrelli
parent ed23c3fe7c
commit b100262c6a

View File

@@ -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();
}