Prevent video thumbnail creation from crashing the app.

fork-5.53.8
Cody Henthorne 2022-08-22 11:52:37 -04:00
rodzic ab3e0b87c6
commit dc503e3406
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -97,8 +97,8 @@ final class VideoThumbnailsExtractor {
doExtract(extractor, decoder, outputSurface, outputWidthRotated, outputHeightRotated, duration, thumbnailCount, callback);
}
} catch (IllegalArgumentException | IOException | TranscodingException | MediaCodec.CodecException e) {
Log.w(TAG, e);
} catch (Throwable t) {
Log.w(TAG, t);
callback.failed();
} finally {
if (outputSurface != null) {