summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dharmaray Kundargi <dharmaray@google.com> 2011-02-04 17:03:47 -0800
committer Android Git Automerger <android-git-automerger@android.com> 2011-02-04 17:03:47 -0800
commit73edcfe8f4678c4d5e91c8018e00a72ea325da71 (patch)
tree39d9d7901e5f8a7d891f4cf274712f6adbbeb060
parent57bb7faf9793329babe04493d89d891ef482ac4f (diff)
parentb894f8959c6be2de5a0c89fedb9824012783dd14 (diff)
am b894f895: Merge "Fix issue 3426200 Movie Studio crashes when a media item is deleted" into honeycomb
* commit 'b894f8959c6be2de5a0c89fedb9824012783dd14': Fix issue 3426200 Movie Studio crashes when a media item is deleted
-rw-r--r--media/java/android/media/videoeditor/MediaArtistNativeHelper.java39
1 files changed, 20 insertions, 19 deletions
diff --git a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
index 6b3f223de23b..806b2845baa8 100644
--- a/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
+++ b/media/java/android/media/videoeditor/MediaArtistNativeHelper.java
@@ -2984,27 +2984,28 @@ class MediaArtistNativeHelper {
}
}
}
- }
- if (!mErrorFlagSet) {
- mPreviewEditSettings.videoFrameSize = findVideoResolution(mVideoEditor
- .getAspectRatio(), maxHeight);
- populateBackgroundMusicProperties(mediaBGMList);
- /** call to native populate settings */
- try {
- nativePopulateSettings(mPreviewEditSettings, mClipProperties, mAudioSettings);
- } catch (IllegalArgumentException ex) {
- Log.e(TAG, "Illegal argument exception in nativePopulateSettings");
- throw ex;
- } catch (IllegalStateException ex) {
- Log.e(TAG, "Illegal state exception in nativePopulateSettings");
- throw ex;
- } catch (RuntimeException ex) {
- Log.e(TAG, "Runtime exception in nativePopulateSettings");
- throw ex;
+ if (!mErrorFlagSet) {
+ mPreviewEditSettings.videoFrameSize = findVideoResolution(mVideoEditor
+ .getAspectRatio(), maxHeight);
+ populateBackgroundMusicProperties(mediaBGMList);
+
+ /** call to native populate settings */
+ try {
+ nativePopulateSettings(mPreviewEditSettings, mClipProperties, mAudioSettings);
+ } catch (IllegalArgumentException ex) {
+ Log.e(TAG, "Illegal argument exception in nativePopulateSettings");
+ throw ex;
+ } catch (IllegalStateException ex) {
+ Log.e(TAG, "Illegal state exception in nativePopulateSettings");
+ throw ex;
+ } catch (RuntimeException ex) {
+ Log.e(TAG, "Runtime exception in nativePopulateSettings");
+ throw ex;
+ }
+ mInvalidatePreviewArray = false;
+ mProcessingState = PROCESSING_NONE;
}
- mInvalidatePreviewArray = false;
- mProcessingState = PROCESSING_NONE;
}
if (mErrorFlagSet) {
mErrorFlagSet = false;