diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2011-11-16 12:50:27 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-16 12:50:27 -0800 |
commit | 10a42f4b16bf43c686f10bfac5d879b46421fbb0 (patch) | |
tree | 4d9a0f5fee44eb59bc16d5a0f1001a53120648db /src | |
parent | 8ac93cfe05ce7fce703d7316ffb3edf19266548a (diff) | |
parent | 0e3f8387302b4aa882c20891f1faba74030f1a4f (diff) | |
download | LegacyCamera-10a42f4b16bf43c686f10bfac5d879b46421fbb0.zip LegacyCamera-10a42f4b16bf43c686f10bfac5d879b46421fbb0.tar.gz LegacyCamera-10a42f4b16bf43c686f10bfac5d879b46421fbb0.tar.bz2 |
Merge "Fix EffectsRecorder error path handling when ending recording." into ics-mr1
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/EffectsRecorder.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java index 390efa6..3d2aebf 100644 --- a/src/com/android/camera/EffectsRecorder.java +++ b/src/com/android/camera/EffectsRecorder.java @@ -798,7 +798,13 @@ public class EffectsRecorder { if (result == GraphRunner.RESULT_ERROR) { // Handle error case Log.e(TAG, "Error running filter graph!"); - raiseError(mRunner == null ? null : mRunner.getError()); + Exception e = null; + if (mRunner != null) { + e = mRunner.getError(); + } else if (mOldRunner != null) { + e = mOldRunner.getError(); + } + raiseError(e); } if (mOldRunner != null) { // Tear down old graph if available |