summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-05-20 11:13:20 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-05-20 11:13:20 -0700
commit3c16154a3309fe250177d69f3fcd5b6e9a82d1b3 (patch)
treee731510c4a2a0d1f008f13032847f6027cab50ed /cmds
parent3716ea04d9fd59ff95bacdf6efac4ab5583e13fc (diff)
parent2723e09229ce916724861ab90b6b8fc7c9ea9f2e (diff)
downloadframeworks_base-3c16154a3309fe250177d69f3fcd5b6e9a82d1b3.zip
frameworks_base-3c16154a3309fe250177d69f3fcd5b6e9a82d1b3.tar.gz
frameworks_base-3c16154a3309fe250177d69f3fcd5b6e9a82d1b3.tar.bz2
am 2723e092: Merge "Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize." into froyo
Merge commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e' into froyo-plus-aosp * commit '2723e09229ce916724861ab90b6b8fc7c9ea9f2e': Better handling of codec initialization failure in the player and thumbnail extractor. Return a runtime error instead of asserting if the software MPEG4/H.263 decoder fails to initialize.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 4405da6..b838f32 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -75,7 +75,12 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) {
}
}
- rawSource->start();
+ status_t err = rawSource->start();
+
+ if (err != OK) {
+ fprintf(stderr, "rawSource returned error %d (0x%08x)\n", err, err);
+ return;
+ }
if (gPlaybackAudio) {
AudioPlayer *player = new AudioPlayer(NULL);