diff options
author | Andreas Huber <andih@google.com> | 2010-05-20 11:11:39 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-05-20 11:11:39 -0700 |
commit | 2723e09229ce916724861ab90b6b8fc7c9ea9f2e (patch) | |
tree | b0c7714be92ab51b71cc8d321449e3ef8751ef7d /cmds | |
parent | 069067963cf0117cfb4a1aef99b550b126d9ca92 (diff) | |
parent | 1919e5af3d8eb8bcf08e50efae2e79eaf065cf6b (diff) | |
download | frameworks_base-2723e09229ce916724861ab90b6b8fc7c9ea9f2e.zip frameworks_base-2723e09229ce916724861ab90b6b8fc7c9ea9f2e.tar.gz frameworks_base-2723e09229ce916724861ab90b6b8fc7c9ea9f2e.tar.bz2 |
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
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 7 |
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); |