diff options
author | Andreas Huber <andih@google.com> | 2010-05-20 11:14:37 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-05-20 11:14:37 -0700 |
commit | cf14f10b7bf39a84205333b87d5c5b7db9598de3 (patch) | |
tree | ff7c34553515179dbd980e5c0010b44b394f7fab /cmds/stagefright | |
parent | 956c553ab0ce72f8074ad0fda2ffd66a0305700c (diff) | |
parent | 8fe7fa8f90e52cab210ec1de861f2d8ac9435968 (diff) | |
download | frameworks_av-cf14f10b7bf39a84205333b87d5c5b7db9598de3.zip frameworks_av-cf14f10b7bf39a84205333b87d5c5b7db9598de3.tar.gz frameworks_av-cf14f10b7bf39a84205333b87d5c5b7db9598de3.tar.bz2 |
am 3c16154a: 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 '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3' into kraken
* commit '3c16154a3309fe250177d69f3fcd5b6e9a82d1b3':
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/stagefright')
-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); |