From 4979601f88154bdeda4cc5277940771ba6597c0f Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Wed, 21 Apr 2010 15:47:15 -0700 Subject: [PATCH] Make the -o option actually terminate. Change-Id: I91b70ee5c3e1fc9b8bb645e219af296867692e65 --- cmds/stagefright/stagefright.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp index b838f320776fe..94086fa0ce70c 100644 --- a/cmds/stagefright/stagefright.cpp +++ b/cmds/stagefright/stagefright.cpp @@ -85,6 +85,7 @@ static void playSource(OMXClient *client, const sp &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 &source) { delete player; player = NULL; + + return; } else if (gReproduceBug >= 3 && gReproduceBug <= 5) { int64_t durationUs; CHECK(meta->findInt64(kKeyDuration, &durationUs));