Skip to content
Snippets Groups Projects
Commit e97a14f6 authored by Alex Hart's avatar Alex Hart
Browse files

Prevent crash when thumbnail decoder cannot stop, log instead.

parent b7118b6b
Branches
Tags
No related merge requests found
...@@ -105,7 +105,11 @@ final class VideoThumbnailsExtractor { ...@@ -105,7 +105,11 @@ final class VideoThumbnailsExtractor {
outputSurface.release(); outputSurface.release();
} }
if (decoder != null) { if (decoder != null) {
try {
decoder.stop(); decoder.stop();
} catch (MediaCodec.CodecException codecException) {
Log.w(TAG, "Decoder stop failed: " + codecException.getDiagnosticInfo(), codecException);
}
decoder.release(); decoder.release();
} }
if (extractor != null) { if (extractor != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment