Prevent crash when thumbnail decoder cannot stop, log instead.
This commit is contained in:
parent
b7118b6bd8
commit
e97a14f617
1 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,11 @@ final class VideoThumbnailsExtractor {
|
||||||
outputSurface.release();
|
outputSurface.release();
|
||||||
}
|
}
|
||||||
if (decoder != null) {
|
if (decoder != null) {
|
||||||
decoder.stop();
|
try {
|
||||||
|
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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue