From f5e376fb8f2c30f82b7548241ca6b24f92ff8914 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Fri, 16 Mar 2012 13:19:20 -0700 Subject: Report an error instead of waiting for EOS indefinitely in sf2. Change-Id: Id7bcfb90a3b6a61f0df8bd8f39ea4ffa3c433d87 --- cmds/stagefright/sf2.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cmds') 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 + #include #include @@ -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; } -- cgit v1.1