summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-03-16 13:19:20 -0700
committerAndreas Huber <andih@google.com>2012-03-16 13:19:20 -0700
commitf5e376fb8f2c30f82b7548241ca6b24f92ff8914 (patch)
tree4f807ca65d21cd7205c0c93b5f31de1e110ae2e0 /cmds
parent49f306f863b14f8bfc3b405ebfd3a2fb2b403c15 (diff)
downloadframeworks_av-f5e376fb8f2c30f82b7548241ca6b24f92ff8914.zip
frameworks_av-f5e376fb8f2c30f82b7548241ca6b24f92ff8914.tar.gz
frameworks_av-f5e376fb8f2c30f82b7548241ca6b24f92ff8914.tar.bz2
Report an error instead of waiting for EOS indefinitely in sf2.
Change-Id: Id7bcfb90a3b6a61f0df8bd8f39ea4ffa3c433d87
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/sf2.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmds/stagefright/sf2.cpp b/cmds/stagefright/sf2.cpp
index 1d28793..e47cdc0 100644
--- a/cmds/stagefright/sf2.cpp
+++ b/cmds/stagefright/sf2.cpp
@@ -14,6 +14,10 @@
* limitations under the License.
*/
+//#define LOG_NDEBUG 0
+#define LOG_TAG "sf2"
+#include <utils/Log.h>
+
#include <binder/ProcessState.h>
#include <media/stagefright/foundation/hexdump.h>
@@ -205,6 +209,12 @@ protected:
}
looper()->stop();
+ } else if (what == ACodec::kWhatError) {
+ ALOGE("something went wrong, codec reported an error.");
+
+ printf("E\n");
+
+ (new AMessage(kWhatStop, id()))->post();
}
break;
}