diff options
author | Andreas Huber <andih@google.com> | 2010-04-21 15:47:15 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-05-20 16:32:29 -0700 |
commit | 4979601f88154bdeda4cc5277940771ba6597c0f (patch) | |
tree | 3c1dc9b7ffe3a0fe0a121d7313e6215f5f6d51c8 /cmds/stagefright | |
parent | c05ab485e415ffd84e4790a17699b4503fa3fdfb (diff) | |
download | frameworks_base-4979601f88154bdeda4cc5277940771ba6597c0f.zip frameworks_base-4979601f88154bdeda4cc5277940771ba6597c0f.tar.gz frameworks_base-4979601f88154bdeda4cc5277940771ba6597c0f.tar.bz2 |
Make the -o option actually terminate.
Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
Diffstat (limited to 'cmds/stagefright')
-rw-r--r-- | cmds/stagefright/stagefright.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index b838f32..94086fa 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -85,6 +85,7 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) { if (gPlaybackAudio) { AudioPlayer *player = new AudioPlayer(NULL); player->setSource(rawSource); + rawSource.clear(); player->start(true /* sourceAlreadyStarted */); @@ -95,6 +96,8 @@ static void playSource(OMXClient *client, const sp<MediaSource> &source) { delete player; player = NULL; + + return; } else if (gReproduceBug >= 3 && gReproduceBug <= 5) { int64_t durationUs; CHECK(meta->findInt64(kKeyDuration, &durationUs)); |