mirror of
https://github.com/status-im/react-native-camera-roll.git
synced 2026-08-27 19:31:12 +00:00
fix(android): retriever.release fix (#425)
This commit is contained in:
@@ -700,7 +700,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
try {
|
||||
retriever.release();
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) { // Use general Exception here, see: https://developer.android.com/reference/android/media/MediaMetadataRetriever#release()
|
||||
// Do nothing. We can't handle this, and this is usually a system problem
|
||||
}
|
||||
}
|
||||
@@ -771,7 +771,7 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
try {
|
||||
retriever.release();
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) { // Use general Exception here, see: https://developer.android.com/reference/android/media/MediaMetadataRetriever#release()
|
||||
// Do nothing. We can't handle this, and this is usually a system problem
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user