mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 12:28:33 +00:00
Fix possible crash when retrieving a video thumbnail.
This commit is contained in:
parent
59d03cbeb2
commit
2bc3a4417f
@ -302,7 +302,7 @@ public class MediaUtil {
|
|||||||
|
|
||||||
mediaMetadataRetriever.setDataSource(mediaDataSource);
|
mediaMetadataRetriever.setDataSource(mediaDataSource);
|
||||||
return mediaMetadataRetriever.getFrameAtTime(1000);
|
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);
|
Log.w(TAG, "failed to get thumbnail for video blob uri: " + uri, e);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user