Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

Commit bc23822

Browse files
committed
if thumbnail error thrown, handle as warning not Error
1 parent ef1e3f5 commit bc23822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/org/ffmpeg/android/MediaUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public static Bitmap getVideoFrame(String videoPath,long frameTime) {
1212
retriever.setDataSource(videoPath);
1313
return retriever.getFrameAtTime(frameTime, MediaMetadataRetriever.OPTION_CLOSEST);
1414
} catch (IllegalArgumentException ex) {
15-
Log.e("MediaUtils", "error getting video frame", ex);
15+
Log.w("FFMPEG.MediaUtils", "illegal argument exception");
1616

1717
} catch (RuntimeException ex) {
18-
Log.e("MediaUtils", "error getting video frame", ex);
18+
Log.w("FFMPEG.MediaUtils", "error getting video frame");
1919
} finally {
2020
try {
2121
retriever.release();

0 commit comments

Comments
 (0)