summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-04-21 15:47:15 -0700
committerAndreas Huber <andih@google.com>2010-05-20 16:32:29 -0700
commit64105f956f15969dbe1ec7319f6caa2a984e588b (patch)
tree4f29f435692f13af99c2e269ccdef246aefede84 /cmds
parentc02138636202d606ca4cfec2297e057e9158db7d (diff)
downloadframeworks_av-64105f956f15969dbe1ec7319f6caa2a984e588b.zip
frameworks_av-64105f956f15969dbe1ec7319f6caa2a984e588b.tar.gz
frameworks_av-64105f956f15969dbe1ec7319f6caa2a984e588b.tar.bz2
Make the -o option actually terminate.
Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp3
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));