Fix possible crash when retrieving a video thumbnail.
This commit is contained in:
parent
59d03cbeb2
commit
2bc3a4417f
1 changed files with 1 additions and 1 deletions
|
@ -302,7 +302,7 @@ public class MediaUtil {
|
|||
|
||||
mediaMetadataRetriever.setDataSource(mediaDataSource);
|
||||
return mediaMetadataRetriever.getFrameAtTime(1000);
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) { // XXX Some devices are hitting a native crash in setDataSource. Not much we can do.
|
||||
Log.w(TAG, "failed to get thumbnail for video blob uri: " + uri, e);
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue